-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove DeltaLakeGlueMetastoreTableFilterProvider.isDeltaLakeTable #12120
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
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 |
|---|---|---|
|
|
@@ -19,7 +19,6 @@ | |
| import javax.inject.Inject; | ||
| import javax.inject.Provider; | ||
|
|
||
| import java.util.Map; | ||
| import java.util.function.Predicate; | ||
|
|
||
| import static java.util.Objects.requireNonNull; | ||
|
|
@@ -40,18 +39,8 @@ public DeltaLakeGlueMetastoreTableFilterProvider(DeltaLakeGlueMetastoreConfig co | |
| public Predicate<Table> get() | ||
| { | ||
| if (hideNonDeltaLakeTables) { | ||
| return DeltaLakeGlueMetastoreTableFilterProvider::isDeltaLakeTable; | ||
| return DefaultGlueMetastoreTableFilterProvider::isDeltaLakeTable; | ||
| } | ||
| return table -> true; | ||
| } | ||
|
|
||
| private static boolean isDeltaLakeTable(Table table) | ||
| { | ||
| Map<String, String> parameters = table.getParameters(); | ||
| if (parameters == null) { | ||
| return false; | ||
| } | ||
| // todo; add parameters == null check to DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable (https://github.com/trinodb/trino/issues/12013) | ||
|
||
| return DefaultGlueMetastoreTableFilterProvider.isDeltaLakeTable(table); | ||
| } | ||
| } | ||
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#isDeltaLakeTableis now unusedThere 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...