-
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
Ignore views on information_schema.columns queries #11946
Ignore views on information_schema.columns queries #11946
Conversation
...src/main/java/io/trino/plugin/deltalake/metastore/HiveMetastoreBackedDeltaLakeMetastore.java
Outdated
Show resolved
Hide resolved
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.
is it testable?
i guess Delta vs Trino views could be tested without product tests, with a file metastore.
We should then follow up with Hive-Delta product tests once we have Delta product tests.
...src/main/java/io/trino/plugin/deltalake/metastore/HiveMetastoreBackedDeltaLakeMetastore.java
Outdated
Show resolved
Hide resolved
1dc3c76
to
ba42b8c
Compare
...src/main/java/io/trino/plugin/deltalake/metastore/HiveMetastoreBackedDeltaLakeMetastore.java
Outdated
Show resolved
Hide resolved
ba42b8c
to
ce1eb52
Compare
@findepi yes it is testable with AWS Glue infrastructure. Thanks for raising this point. |
ce1eb52
to
bea1ef7
Compare
Test PR: #12046 (cc @ilfrin @nineinchnick for potentially streamlining this) |
Description
The queries on
delta.information_schema.columns
don't work in the presence of a Hive view in the shared metastore service (HMS/Glue).On such queries the user receives:
This bugfix uses the same technique employed on the
Iceberg
connnector for throwing aTableNotFoundException
which is catched onstreamTableColumns()
method on theDeltaLakeMetadata
so that views can be ignored.The PR depends on #11565 for testing
Fix
Delta Lake connector
Related issues, pull requests, and links
Documentation
(x) 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
(x) No release notes entries required.
( ) Release notes entries required with the following suggested text: