Repository navigation
HIVE-30131: StatsOptimizer: Answer MIN, MAX and COUNT on a DECIMAL column from column statistics - #6844
Open
deniskuzZ wants to merge 1 commit into
Open
HIVE-30131: StatsOptimizer: Answer MIN, MAX and COUNT on a DECIMAL column from column statistics#6844deniskuzZ wants to merge 1 commit into
deniskuzZ wants to merge 1 commit into
Conversation
deniskuzZ
force-pushed
the
HIVE-30131
branch
2 times, most recently
from
October 5, 2026 22:55
c24a193 to
ba8a463
Compare
…lumn from column statistics - getType mapped a decimal column to StatType.Unsupported, so min, max and count(col) over one scanned the table even with accurate satistics - add StatType.Decimal and the cases its exhaustive switches then require - read the bound through DecimalUtils.getHiveDecimal, as the metastore does - partitioned tables need no fold here: statsFor already aggregates them
|
This branch has not been deployed
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.



What changes were proposed in this pull request?
Why are the changes needed?
Missing stats optimization for DECIMAL column
Does this PR introduce any user-facing change?
No
How was this patch tested?
metadata_only_queries.q