-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Remove redundant checks from DropSchemaTask #11612
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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -142,7 +142,8 @@ Optional<TableExecuteHandle> getTableHandleForExecute( | |||||||||
| TableStatistics getTableStatistics(Session session, TableHandle tableHandle, Constraint constraint); | ||||||||||
|
|
||||||||||
| /** | ||||||||||
| * Get the names that match the specified table prefix (never null). | ||||||||||
| * Get the relation names that match the specified table prefix (never null). | ||||||||||
| * This includes all relations (e.g. tables, views, materialized views). | ||||||||||
|
Comment on lines
+145
to
+146
Member
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 did not check. Is this accurate for all the connector now?
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. I went through all the implementations of
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.
even if it wasn't the case yet, we already have this trino/core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java Lines 210 to 213 in 8b0c754
and Metadata just calls that method. |
||||||||||
| */ | ||||||||||
| List<QualifiedObjectName> listTables(Session session, QualifiedTablePrefix prefix); | ||||||||||
|
|
||||||||||
|
|
||||||||||
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 would be beneficial to add views & materialized views in the
io.trino.testing.BaseConnectorTest#testDropNonEmptySchemadepending on:SUPPORTS_CREATE_VIEWSUPPORTS_CREATE_MATERIALIZED_VIEWThere 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.
Good idea, but we would have to test all these 3 cases separately. I don't plan to do this though. Do you want to want to follow up?
Uh oh!
There was an error while loading. Please reload this page.
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.
Yes, I'll create a PR based on your changes.
See #11614
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.
many thanks!