-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix listTables to include views #11063
Conversation
4543431
to
f99dfed
Compare
This makes `system.jdbc.columns` assertions consistent with preceding `information_schema.columns` assertions.
f99dfed
to
a083752
Compare
Can we rename listTables to listRelations to avoid confusion ? It's easy to miss that code comment about listTables contract and assume that it is meant to list tables. |
Do we need an update to BlackHoleMetadata as well ? |
a083752
to
e2c643d
Compare
fixed
out of scope |
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.
MemoryMetadata doesn't have the deduplication part.
Does TestingMetadata also need this change?
Looks good otherwise.
whatever |
@@ -441,12 +444,16 @@ public void dropView(ConnectorSession session, SchemaTableName schemaViewName) | |||
{ | |||
// Filter on PRESTO_VIEW_COMMENT to distinguish from materialized views |
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.
move comment to listViews
Per `ConnectorMetadata.listTables` contract, this should include views and materialized views. Make Iceberg implementation follow the contract. This fixes `IcebergMetadata`, `AccumuloMetadata`, `RaptorMetadata` and `BlackHoleMetadata. The `HiveMetadata` was correct and other connectors do not support views currently. This also fixes `system.jdbc.tables` and `system.jdbc.columns` -- Iceberg views were not included in these tables.
e2c643d
to
2c8bdf7
Compare
Per
ConnectorMetadata.listTables
contract, this should include viewsand materialized views. Make Iceberg implementation follow the contract.
This fixes
IcebergMetadata
,AccumuloMetadata
andRaptorMetadata
.The
HiveMetadata
was correct and other connectors do not support viewscurrently.
This also fixes
system.jdbc.tables
andsystem.jdbc.columns
--Iceberg views were not included in these tables.
Fixes #11060