Skip to content

Ignore non delta lake tables on information_schema.columns queries#12122

Merged
findepi merged 2 commits intotrinodb:masterfrom
findinpath:delta-information-schema-columns-with-hive-view
Apr 27, 2022
Merged

Ignore non delta lake tables on information_schema.columns queries#12122
findepi merged 2 commits intotrinodb:masterfrom
findinpath:delta-information-schema-columns-with-hive-view

Conversation

@findinpath
Copy link
Contributor

@findinpath findinpath commented Apr 25, 2022

Description

In a shared metastore context, when dealing with non-redirected tables which
are not Delta Lake tables, do not throw an exception, but instead simply
ignore the table in the context of information_schema.columns queries.

This change renders the annotation HideNonDeltaLakeTables useless,
reason why it removes it and its usages in the code of Delta Lake connector.

NOTE that the setting config.hide-non-delta-lake-tables it is still used in the context of the class io.trino.plugin.deltalake.metastore.glue.DeltaLakeGlueMetastoreTableFilterProvider

Is this change a fix, improvement, new feature, refactoring, or other?

Fix

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Delta Lake

How would you describe this change to a non-technical end user or system administrator?

Consider the situation of dealing with a shared Hive metastore service where live both delta and hive tables and the table redirections are not enabled (delta.hive-catalog-name is not specified).
This change allows to deal without errors while performing queries on information_schema.columns on the delta connector in the presence of Hive views/tables in the shared metastore.

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

( ) No release notes entries required.
(x) Release notes entries required with the following suggested text:

# Delta Lake 
* Ignore non-redirected non delta lake tables/views on `information_schema.columns` queries. ({issue}`12122`)

@cla-bot cla-bot bot added the cla-signed label Apr 25, 2022
@findinpath findinpath force-pushed the delta-information-schema-columns-with-hive-view branch 2 times, most recently from 26f4220 to a973b6b Compare April 25, 2022 10:40
In a shared metastore context, when dealing with non-redirected tables which
are not Delta Lake tables, do not throw an exception, but instead simply
ignore the table in the context of `information_schema.columns` queries.

This change renders the annotation `HideNonDeltaLakeTables` useless,
reason why it removes it and its usages in the code of Delta Lake connector.
@findinpath findinpath force-pushed the delta-information-schema-columns-with-hive-view branch from a973b6b to 0eae1ca Compare April 25, 2022 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants