-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Avoid redundant metastore calls for non-system Iceberg tables #8689
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 |
---|---|---|
|
@@ -83,7 +83,7 @@ public void testCreateTable() | |
ImmutableMultiset.builder() | ||
.add(CREATE_TABLE) | ||
.add(GET_DATABASE) | ||
.addCopies(GET_TABLE, 2) | ||
.add(GET_TABLE) | ||
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. In another PR i was suggested to use only 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. I think it was about consistency of neighbouring lines. i do hope we will bring those counts to 1 (if by nothing else, then with some metastore cache) I do not know whether it that other PR count of 1 is the expected value, so maybe there is a difference. |
||
.build()); | ||
} | ||
|
||
|
@@ -94,7 +94,7 @@ public void testCreateTableAsSelect() | |
ImmutableMultiset.builder() | ||
.add(GET_DATABASE) | ||
.add(CREATE_TABLE) | ||
.addCopies(GET_TABLE, 2) | ||
.add(GET_TABLE) | ||
.build()); | ||
} | ||
|
||
|
@@ -105,7 +105,7 @@ public void testSelect() | |
|
||
assertMetastoreInvocations("SELECT * FROM test_select_from", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 12) | ||
.addCopies(GET_TABLE, 8) | ||
.build()); | ||
} | ||
|
||
|
@@ -116,7 +116,7 @@ public void testSelectWithFilter() | |
|
||
assertMetastoreInvocations("SELECT * FROM test_select_from_where WHERE age = 2", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 12) | ||
.addCopies(GET_TABLE, 8) | ||
.build()); | ||
} | ||
|
||
|
@@ -128,7 +128,7 @@ public void testJoin() | |
|
||
assertMetastoreInvocations("SELECT name, age FROM test_join_t1 JOIN test_join_t2 ON test_join_t2.id = test_join_t1.id", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 24) | ||
.addCopies(GET_TABLE, 16) | ||
.build()); | ||
} | ||
|
||
|
@@ -139,7 +139,7 @@ public void testExplainSelect() | |
|
||
assertMetastoreInvocations("EXPLAIN SELECT * FROM test_explain", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 11) | ||
.addCopies(GET_TABLE, 7) | ||
.build()); | ||
} | ||
|
||
|
@@ -150,7 +150,7 @@ public void testShowStatsForTable() | |
|
||
assertMetastoreInvocations("SHOW STATS FOR test_show_stats", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 9) | ||
.addCopies(GET_TABLE, 5) | ||
.build()); | ||
} | ||
|
||
|
@@ -161,7 +161,7 @@ public void testShowStatsForTableWithFilter() | |
|
||
assertMetastoreInvocations("SHOW STATS FOR (SELECT * FROM test_show_stats_with_filter where age >= 2)", | ||
ImmutableMultiset.builder() | ||
.addCopies(GET_TABLE, 9) | ||
.addCopies(GET_TABLE, 5) | ||
.build()); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also remove the metastore call below if we translate the not found exception into empty.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, will handle in a follow up, since this also requires more test coverage (#8690)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in #8692