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 |
hashhar
left a comment
There was a problem hiding this comment.
MemoryMetadata doesn't have the deduplication part.
Does TestingMetadata also need this change?
Looks good otherwise.
whatever |
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.listTablescontract, this should include viewsand materialized views. Make Iceberg implementation follow the contract.
This fixes
IcebergMetadata,AccumuloMetadataandRaptorMetadata.The
HiveMetadatawas correct and other connectors do not support viewscurrently.
This also fixes
system.jdbc.tablesandsystem.jdbc.columns--Iceberg views were not included in these tables.
Fixes #11060