Skip to content

Disallow querying delta lake properties table#10447

Merged
phd3 merged 3 commits intotrinodb:masterfrom
findinpath:disallow-querying-delta-lake-properties-table
Jan 6, 2022
Merged

Disallow querying delta lake properties table#10447
phd3 merged 3 commits intotrinodb:masterfrom
findinpath:disallow-querying-delta-lake-properties-table

Conversation

@findinpath
Copy link
Copy Markdown
Contributor

Extracted relevant commits for disallowing the querying of the $properties table on the delta lake tables in hive from the PR #10441

@cla-bot cla-bot bot added the cla-signed label Jan 3, 2022
@findinpath findinpath force-pushed the disallow-querying-delta-lake-properties-table branch from 527b7e4 to abab02c Compare January 3, 2022 06:22
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: would be good to mention table name in error message

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I modified the exception message to its original format to be in sync with the other places where the exception is being thrown.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @phd3 we should provide table name in the message.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. I'll make a separate commit then to update everywhere the exception message.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, the io.trino.plugin.hive.HiveMetadata#getTableHandle can (and should) be updated in a separate commit.

@findinpath findinpath force-pushed the disallow-querying-delta-lake-properties-table branch 2 times, most recently from f93877c to 0b757ba Compare January 4, 2022 05:58
@findinpath findinpath requested a review from phd3 January 4, 2022 05:59
@findinpath findinpath force-pushed the disallow-querying-delta-lake-properties-table branch 2 times, most recently from 349c5a0 to 55da414 Compare January 4, 2022 15:43
@findinpath findinpath requested a review from findepi January 5, 2022 05:47
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @phd3 we should provide table name in the message.

@findinpath findinpath force-pushed the disallow-querying-delta-lake-properties-table branch from 55da414 to 9c252f8 Compare January 5, 2022 12:57
@findinpath findinpath force-pushed the disallow-querying-delta-lake-properties-table branch from 9c252f8 to acb1779 Compare January 5, 2022 12:58
@phd3 phd3 merged commit 209de67 into trinodb:master Jan 6, 2022
@phd3
Copy link
Copy Markdown
Member

phd3 commented Jan 6, 2022

Merged, thanks!

@github-actions github-actions bot added this to the 368 milestone Jan 6, 2022
@phd3 phd3 mentioned this pull request Jan 6, 2022
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.

3 participants