Skip to content

[spark] Support tag sources in materialized views - #11647

Draft
XiaoHongbo-Hope wants to merge 3 commits into
apache:masterfrom
XiaoHongbo-Hope:feat/spark-mv-tag-source
Draft

XiaoHongbo-Hope wants to merge 3 commits into
apache:masterfrom
XiaoHongbo-Hope:feat/spark-mv-tag-source

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Support FROM events VERSION AS OF 'published_training' in Spark materialized views.

Refresh pins the tag's snapshot and schema, including snapshots retained only by a tag. Moving the tag triggers a full rebuild; a missing tag leaves the result unchanged. Repeated references to one source must use the same selector. Snapshot IDs and timestamps remain unsupported.

Tests

91 tests passed: 17 core MV, 42 index scan, 26 existing Spark MV, and 6 tag tests. Covers tag moves, retained snapshots, historical schema, serialization and failure preservation. Build and validation checks passed.

@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as draft December 2, 2026 15:59
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