Skip to content

Quote identifiers and tighten migration scope warnings#78

Open
KeKs0r wants to merge 4 commits intomainfrom
marc/code-audit-codex
Open

Quote identifiers and tighten migration scope warnings#78
KeKs0r wants to merge 4 commits intomainfrom
marc/code-audit-codex

Conversation

@KeKs0r
Copy link
Contributor

@KeKs0r KeKs0r commented Mar 1, 2026

Summary

  • consistently format identifiers/qualified names across planners, SQL rendering, CLI migrations, and the backfill plugin for safer SQL generation
  • enhance migration filtering to warn when metadata is missing and expose warnings through outputs
  • improve ClickHouse parsing/drift handling around wrapped nullable types, doubled quotes, and projection/system column introspection

Testing

  • Not run (not requested)

KeKs0r and others added 3 commits March 1, 2026 12:22
…der in MV replay (#77)

ClickHouse's INSERT INTO target (cols) SELECT ... maps columns positionally, not by name.
When the materialized view query's SELECT output is in a different column order than the
target table, data was being inserted into wrong columns. Now rewriteSelectColumns()
parses the SELECT projection to build an alias map, then emits columns in target order.

Fixes backfill of materialized view targets with columns in different order.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Resolve conflict in planner.ts: keep formattedTarget and explicit
column list in MV replay INSERT (from HEAD).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@KeKs0r KeKs0r enabled auto-merge (squash) March 1, 2026 08:20
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