Skip to main content

Module migrate

Module migrate 

Source

StructsΒ§

MigrateResult πŸ”’

ConstantsΒ§

MIGRATION_VERSION_KEY πŸ”’
Catalog key of the migration_version setting.

FunctionsΒ§

ast_rewrite_add_missing_doc_on_ids πŸ”’
Add missing item IDs to DOC ON references in CREATE SINK statements.
ast_rewrite_add_missing_index_ids πŸ”’
Add missing item IDs to the ON clauses of CREATE INDEX statements.
ast_rewrite_create_sink_partition_strategy πŸ”’
ast_rewrite_kafka_metadata_refresh_intervals πŸ”’
ast_rewrite_small_commit_intervals πŸ”’
Planning enforces a 1 second minimum COMMIT INTERVAL, but smaller intervals used to be accepted (and a sub-millisecond one left the sink unable to ever commit). Rewrite any persisted smaller interval to 1s so the sink still plans after an upgrade.
ast_rewrite_sql_server_constraints πŸ”’
ast_rewrite_strip_builtin_version_pins πŸ”’
Strips the VERSION qualifier from by-id references to non-user (builtin) items.
ast_rewrite_strip_unsupported_column_collations πŸ”’
Planning rejects unsupported column collations, but CREATE TABLE used to accept and ignore them. Strip them so the table still plans after an upgrade. The planner never applied them, so the table’s columns are unchanged.
durable_migrate πŸ”’
Migrations that run only on the durable catalog before any data is loaded into memory.
get_migration_version πŸ”’
migrate πŸ”’
Migrates all user items and loads them into state.
migrate_builtin_tables_to_mvs πŸ”’
Update system object mappings for builtins whose type changed from table to materialized view.
rewrite_ast_items πŸ”’
rewrite_doc_on_ids πŸ”’
Replaces every bare DOC ON reference in stmt for which lookup returns an id with the [id AS name] form. None leaves the reference as a name.
rewrite_interval_option_floor_1s πŸ”’
Rewrites an interval option value to '1s' if it is below 1 second.
rewrite_items πŸ”’
rewrite_sources_to_tables πŸ”’
Migrates all sources to use the new sources as tables model
set_migration_version πŸ”’