Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor HiveMetastore statistics related interfaces
- Remove optional from the Metastore statistics interfaces - Remove column granularity from getStatistics* metastore methods Optional.empty() and Optional.of(ImmutableMap.of()) is basically the same. It introduces a lot of confusion of when to return an empty map, and when to return an empty optional. Also currently we never query statistics for a subset of columns. It is not supported by the ConnectorMetadata interface. So this code just complicates the interfaces, and increases the amount of memory used by the statistics cache.
- Loading branch information
Showing
10 changed files
with
127 additions
and
265 deletions.
There are no files selected for viewing
250 changes: 58 additions & 192 deletions
250
presto-hive/src/main/java/com/facebook/presto/hive/metastore/CachingHiveMetastore.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.