-
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
Remove DeltaLakeGlueMetastoreTableFilterProvider.isDeltaLakeTable #12120
Conversation
02b3683
to
1466095
Compare
@@ -51,7 +51,6 @@ private static boolean isDeltaLakeTable(Table table) | |||
if (parameters == null) { | |||
return false; | |||
} | |||
// todo; add parameters == null check to DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable (https://github.com/trinodb/trino/issues/12013) |
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.
remove Map<String, String> parameters = table.getParameters();
above too
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.
Why ? To me it is a 'fast path' for returning false. @findepi
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.
it's a code piece that is now redundant. we wouldn't write it originally if DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable
didn't have a problem
actually, the whole method should get inlined now
1466095
to
10ac9b2
Compare
@findepi is it better now? |
@@ -40,7 +40,7 @@ public DeltaLakeGlueMetastoreTableFilterProvider(DeltaLakeGlueMetastoreConfig co | |||
public Predicate<Table> get() | |||
{ | |||
if (hideNonDeltaLakeTables) { | |||
return DeltaLakeGlueMetastoreTableFilterProvider::isDeltaLakeTable; | |||
return DefaultGlueMetastoreTableFilterProvider::isDeltaLakeTable; |
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.
io.trino.plugin.deltalake.metastore.glue.DeltaLakeGlueMetastoreTableFilterProvider#isDeltaLakeTable
is now unused
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.
:| i pressed cmd+z too many times...
Replace it with DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable
10ac9b2
to
e36ea1d
Compare
Description
Replace it with DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable.
Base on b7c07f2 tt looks like we don't want to do it anymore.
fixes: #12013
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: