Repository navigation
Preserve aggregate field metadata when folding exact statistics - #194
Merged
osipovartem merged 1 commit intoNov 25, 2026
Conversation
osipovartem
marked this pull request as ready for review
November 25, 2026 22:51
osipovartem
merged commit Nov 25, 2026
450e7e9
into
fix/schema-modifiers-parser-pin-20261113
38 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
AggregateStatisticscan replace a COUNT with a constant from exact source statistics, but constructing the replacement as a metadata-free literal drops the aggregate result field's metadata. A metadata-aware outer projection then needs a separate node to restore the declaration.Change
Verification
[3, 2, 1]. The baseline drops both tags; the candidate restores only the two final tags in both Single and Partial/Final plans.git diff --checkpass. Independent read-only review approved the exact commit subject to green CI on that head and an unchanged base.All 38 hosted checks passed on
b578f510, including the SQLite SQLLogicTest suite. The accepted merge commit450e7e90has the same source tree.This change is generic DataFusion metadata preservation; it does not register a Snowflake-specific COUNT implementation in Rustice.