Skip to content

Fix error message when creating table in non-existing schema#14769

Merged
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/thrift-foobar-schema
Nov 5, 2022
Merged

Fix error message when creating table in non-existing schema#14769
findepi merged 1 commit intotrinodb:masterfrom
findepi:findepi/thrift-foobar-schema

Conversation

@findepi
Copy link
Copy Markdown
Member

@findepi findepi commented Oct 26, 2022

Before the change, when using Hive with Thrift HMS, an error message would contain schema name, but not the words "Schema not found" (or the like).

Fixes #14741

@cla-bot cla-bot bot added the cla-signed label Oct 26, 2022
@findepi findepi self-assigned this Oct 26, 2022
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 don't think throwing SchemaNotFoundException for all InvalidObjectException is a good idea. For instance, invalid table name throws InvalidObjectException.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe we should evaluate, in case of dealing with an InvalidObjectException whether the schema actually exists and act accordingly.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

updated accordingly

@findepi findepi added the no-release-notes This pull request does not require release notes entry label Nov 4, 2022
@findepi
Copy link
Copy Markdown
Member Author

findepi commented Nov 4, 2022

(just rebased)

@findepi findepi force-pushed the findepi/thrift-foobar-schema branch from 65d1f14 to 3efee9b Compare November 4, 2022 16:20
Before the change, when using Hive with Thrift HMS, an error message
would contain schema name, but not the words "Schema not found" (or the
like).
@findepi findepi force-pushed the findepi/thrift-foobar-schema branch from 3efee9b to 8ebfe6a Compare November 4, 2022 16:54
@findepi findepi requested a review from ebyhr November 4, 2022 16:55
@findepi findepi merged commit c2938ed into trinodb:master Nov 5, 2022
@findepi findepi deleted the findepi/thrift-foobar-schema branch November 5, 2022 21:48
@github-actions github-actions bot added this to the 403 milestone Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

Bad error message creating a Hive table in a schema that does not exist

4 participants