Skip to content

Conversation

@konstantinb
Copy link
Contributor

What changes were proposed in this pull request?

HIVE-29332: Use null values for min/max Range values of numeric columns if the corresponding stats values are not set

Why are the changes needed?

Stats could be severely underestimated for some queries. In addition, invalid ranges like [0, -10] were theoretically possible. The following screenshot clearly highlights changes in the EXPLAIN output:
HIVE-2932-explain-before-and-after

Does this PR introduce any user-facing change?

No

How was this patch tested?

with a query test file, with unittesting, and with a proprietary Hive implementation

@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants