Skip to main content

Module ddl

Module ddl 

Source

Structsยง

DdlSubmitOptions ๐Ÿ”’

Constantsยง

ALLOWED_FLOW_OPTIONS ๐Ÿ”’

Functionsยง

build_procedure_id_output ๐Ÿ”’
column_name_and_type ๐Ÿ”’
convert_identifier ๐Ÿ”’
convert_one_expr ๐Ÿ”’
convert_value ๐Ÿ”’
create_table_info
determine_flow_type_for_source_state ๐Ÿ”’
ensure_entity_column_renders_as_string ๐Ÿ”’
ensure_partition_expr_columns_in_target ๐Ÿ”’
ensure_partition_operand_columns_in_target ๐Ÿ”’
ensure_table_definition_writable ๐Ÿ”’
ensure_table_writable plus the definition guard for system-defined tables: user CREATE, ALTER and RENAME-into are rejected so the canonical schema cannot be squatted or mutated. DROP and TRUNCATE stay allowed โ€” the next INSERT recreates the table canonically, which is also the recovery path if the canonical definition changes across an upgrade.
ensure_table_writable ๐Ÿ”’
Rejects DDL against read-only schemas and computed entity-graph tables.
find_partition_columns ๐Ÿ”’
find_partition_entries ๐Ÿ”’
Parse [Partitions] into a group of partition entries.
has_stable_string_form ๐Ÿ”’
Whether CAST(column AS Utf8) yields a stable entity-id string โ€” the binary-backed and nested types do not, and without the DDL check the failure would surface only when the graph is scanned.
normalize_flow_bool_option ๐Ÿ”’
parse_ddl_options ๐Ÿ”’
parse_partitions
Parse partition statement [Partitions] into [PartitionExpr] and partition columns.
parse_partitions_for_logical_validation ๐Ÿ”’
supported_flow_options ๐Ÿ”’
validate_and_collect_partition_columns ๐Ÿ”’
validate_and_normalize_flow_options ๐Ÿ”’
validate_entity_semantic_options ๐Ÿ”’
Validates greptime.semantic.entity.<type>.{id|descriptive|scope} options against the table schema: every named column must exist (tag or field) and have a stable string form โ€” the derivation renders id, scope and descriptive values as strings.
validate_json2_columns_append_mode ๐Ÿ”’
validate_repartition_column_hint ๐Ÿ”’
verify_alter
Verifies an alter and returns whether it is necessary to perform the alter.