Skip to content

fix(mv): always backfill dest series table and register metadata on MV create - #105

Merged
austin-barrington merged 1 commit into
mainfrom
fix_mv_series
Jul 16, 2026
Merged

fix(mv): always backfill dest series table and register metadata on MV create#105
austin-barrington merged 1 commit into
mainfrom
fix_mv_series

Conversation

@austin-barrington

Copy link
Copy Markdown
Member

The destination series table was never populated when creating a materialized view without WITH BACKFILL, because the ClickHouse native series MV only fires on new INSERTs to the source series table � and known series are skipped by register_new_series(). This left the dest _series table empty, causing all tag values in the MV destination to resolve as empty strings via the LEFT JOIN.

  • Always run series backfill on MV creation regardless of WITH BACKFILL
  • Register resulting series and tag values in RocksDB after backfill
  • Add register_series_from_series_table() helper to sync chDB series rows
  • Add test verifying dest series metadata is seeded without fact backfill
  • Bump version to 0.8.5

…V create

The destination series table was never populated when creating a materialized
view without WITH BACKFILL, because the ClickHouse native series MV only fires
on new INSERTs to the source series table � and known series are skipped by
register_new_series(). This left the dest _series table empty, causing all tag
values in the MV destination to resolve as empty strings via the LEFT JOIN.

- Always run series backfill on MV creation regardless of WITH BACKFILL
- Register resulting series and tag values in RocksDB after backfill
- Add register_series_from_series_table() helper to sync chDB series rows
- Add test verifying dest series metadata is seeded without fact backfill
- Bump version to 0.8.5
@austin-barrington
austin-barrington merged commit c963014 into main Jul 16, 2026
4 checks passed
@austin-barrington
austin-barrington deleted the fix_mv_series branch July 16, 2026 18:29
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