{{ message }}
Repository navigation
Fix MAX on hive partition column after file pruning (#25629) - #25690
Merged
Mytherin merged 2 commits intoSep 15, 2026
Merged
Conversation
When hive partitioning prunes down to a single file, aggregate optimization can request statistics for partition columns that are not present in the parquet file schema. Guard against out-of-bounds column indices instead of asserting, and add a regression test for MAX on a hive date column. Fixes duckdb#25629
duckdb-draftbot
marked this pull request as draft
September 14, 2026 14:03
Keep this branch limited to the hive partition MAX fix.
avakili-voleon
marked this pull request as ready for review
September 14, 2026 15:06
2 tasks done
Mytherin
enabled auto-merge
September 15, 2026 07:10
Member
Merged
via the queue into
duckdb:v2.0-cyanoptera
with commit Sep 15, 2026
4b1dfb8
76 of 78 checks passed
This was referenced Sep 15, 2026
Mytherin
added a commit
that referenced
this pull request
Sep 16, 2026
…25766) Cherry-pick of #25690 onto `v1.5-variegata`. On 1.5.x, MAX/MIN on a hive partition column still crashes/asserts when file pruning leaves a single parquet file. Hive partition columns can have storage indices outside the parquet file schema. Guard `GetColumnStatistics` and `MinMaxIsExact` instead of asserting on bounds. Original: #25690 Fork PR with CI run : avakili-voleon#4
8 of 9 tasks
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.

Fixes #25629