forked from prestodb/presto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not store NDV for Boolean in HiveColumnStatistics
Since there is no NDV statistic stored in the Metastore for the boolean type, we compute NDV based on (false, true and null) counts statistics. HiveColumnStatistics is rather a simple storage class. It must hold the exact representation of the statistics stored in the Metastore. The NDV computation must be done in the MetastoreHiveStatisticsProvider.java, where all the other translations take place. As part of this refactoring the way we process null is changed, to be consistent with the rest of the statistics, where we account null as a distinct value.
- Loading branch information
Showing
4 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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