Skip to content

preserve engine arguments when loading tables#14

Merged
anytoe merged 1 commit into
mainfrom
feature/engine-args
May 15, 2026
Merged

preserve engine arguments when loading tables#14
anytoe merged 1 commit into
mainfrom
feature/engine-args

Conversation

@anytoe
Copy link
Copy Markdown
Owner

@anytoe anytoe commented May 15, 2026

system.tables.engine returns only the bare engine name; arguments like the version column on ReplacingMergeTree(xo_received_at) live in engine_full. The diff path was dropping them, so emitted CREATE TABLE statements lost the deduplication semantics. Parse engine args from engine_full, store them on Table.EngineArgs, and emit them in the rebuilt DDL. An args change also triggers drop+recreate, mirroring how engine and ORDER BY changes are handled.

Strips the leading replication parameters from Shared*/Replicated* engines to mirror NormalizeEngine's "Shared" prefix removal.

system.tables.engine returns only the bare engine name; arguments like the
version column on ReplacingMergeTree(xo_received_at) live in engine_full. The
diff path was dropping them, so emitted CREATE TABLE statements lost the
deduplication semantics. Parse engine args from engine_full, store them on
Table.EngineArgs, and emit them in the rebuilt DDL. An args change also
triggers drop+recreate, mirroring how engine and ORDER BY changes are handled.

Strips the leading replication parameters from Shared*/Replicated* engines to
mirror NormalizeEngine's "Shared" prefix removal.
@anytoe anytoe merged commit a6fc9a5 into main May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant