Skip to content

fix: resolve 5 materialized view pipeline bugs - #55

Merged
austin-barrington merged 2 commits into
mainfrom
fix_mv_bugs
Jul 2, 2026
Merged

fix: resolve 5 materialized view pipeline bugs#55
austin-barrington merged 2 commits into
mainfrom
fix_mv_bugs

Conversation

@austin-barrington

Copy link
Copy Markdown
Member

Bug C: MV SELECT field order: sort field expressions by output name in translate_materialized_view_select so they match the destination table's sorted-by-physical-name column order (ClickHouse INSERT is positional).

Bug D: Tag-field collision asymmetry: translate_materialized_view_series_select now accepts an optional dest_field_names set, resolving tag physical column names against the destination's field set rather than the source's.

Bug E: Raw-write guard: add materialized flag to MeasurementMeta. Set it on MV destinations. reject_table rejects direct writes to materialized destinations.

Bug G: Orphaned table cleanup: drop_mv now calls drop_measurement on the destination fact+series tables after dropping ClickHouse MV objects.

Bug 6: DROP MEASUREMENT RP support: change DropMeasurement AST from a bare String to { name, rp: Option }. Parser handles "rp"."measurement" syntax. Handler uses RP when specified, default RP otherwise.

Bug C: MV SELECT field order: sort field expressions by output name in
translate_materialized_view_select so they match the destination table's
sorted-by-physical-name column order (ClickHouse INSERT is positional).

Bug D: Tag-field collision asymmetry: translate_materialized_view_series_select
now accepts an optional dest_field_names set, resolving tag physical column names
against the destination's field set rather than the source's.

Bug E: Raw-write guard: add materialized flag to MeasurementMeta. Set it on MV
destinations. reject_table rejects direct writes to materialized destinations.

Bug G: Orphaned table cleanup: drop_mv now calls drop_measurement on the
destination fact+series tables after dropping ClickHouse MV objects.

Bug 6: DROP MEASUREMENT RP support: change DropMeasurement AST from a bare
String to { name, rp: Option<String> }. Parser handles "rp"."measurement"
syntax. Handler uses RP when specified, default RP otherwise.
@austin-barrington
austin-barrington merged commit 5c9a02a into main Jul 2, 2026
4 checks passed
@austin-barrington
austin-barrington deleted the fix_mv_bugs branch July 2, 2026 09:32
@austin-barrington austin-barrington mentioned this pull request Jul 8, 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