-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-27190: Implement col stats cache for hive iceberg table #6380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -184,8 +184,11 @@ public static PrunedPartitionList prune(Table tab, ExprNodeDesc prunerExpr, | |
| String key = tab.getFullyQualifiedName() + ";"; | ||
| if (tab.getMetaTable() != null) { | ||
| key = tab.getFullyQualifiedName() + "." + tab.getMetaTable() + ";"; | ||
| } else if (tab.getSnapshotRef() != null) { | ||
| key = tab.getFullyQualifiedName() + "." + tab.getSnapshotRef() + ";"; | ||
| } else if (tab.isNonNative()) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we currently limit ourselves to only Iceberg tables, rather than all non-native tables?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. others would have a fallback, -1 snapshotId |
||
| long snapshotId = tab.getStorageHandler().getSnapshotId(tab); | ||
| if (snapshotId > 0) { | ||
| key = tab.getFullyQualifiedName() + "." + snapshotId + ";"; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why change it here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
| } | ||
|
|
||
| if (!tab.isPartitioned()) { | ||
|
|
@@ -441,7 +444,7 @@ static private boolean hasUserFunctions(ExprNodeDesc expr) { | |
| return false; | ||
| } | ||
|
|
||
| private static PrunedPartitionList getPartitionsFromServer(Table tab, String key, ExprNodeDesc compactExpr, | ||
| private static PrunedPartitionList getPartitionsFromServer(Table tab, String key, ExprNodeDesc compactExpr, | ||
| HiveConf conf, Set<String> partColsUsedInFilter, boolean isPruningByExactFilter) | ||
| throws SemanticException { | ||
| try { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.