Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
Currently, min/max values for columns are only used to determine whether a certain range filter falls out of range and thus filters all rows or none at all. If it does not, we just use a heuristic that the condition will filter 1/3 of the input rows. Instead of using that heuristic, we can use another one that assumes that data will be uniformly distributed across that range, and calculate the selectivity for the condition accordingly.
Attachments
Attachments
Issue Links
- is blocked by
-
HIVE-22248 Min value for column in stats is not set correctly for some data types
- Closed
- is related to
-
HIVE-22311 Propagate min/max column values from statistics to the optimizer for timestamp type
- Closed
- links to