Skip to content

Add StandardErrorCode.ILLEGAL_ENTITY_KIND#22929

Merged
wendigo merged 1 commit intotrinodb:masterfrom
djsagain:david.stryker/add-illegal-entity-kind
Aug 5, 2024
Merged

Add StandardErrorCode.ILLEGAL_ENTITY_KIND#22929
wendigo merged 1 commit intotrinodb:masterfrom
djsagain:david.stryker/add-illegal-entity-kind

Conversation

@djsagain
Copy link
Copy Markdown
Member

@djsagain djsagain commented Aug 4, 2024

Now that Trino can grant/deny/revoke privileges on arbitrary entity kinds, we need a StandardErrorCode for unrecognized entity kinds.

Description

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

Now that Trino can grant/deny/revoke privileges on arbitrary entity
kinds, we need a StandardErrorCode for unrecognized entity kinds.
@cla-bot cla-bot bot added the cla-signed label Aug 4, 2024
@djsagain djsagain requested review from codyzwief and martint August 4, 2024 14:24
@wendigo wendigo merged commit 8f4dc1c into trinodb:master Aug 5, 2024
@github-actions github-actions bot added this to the 454 milestone Aug 5, 2024
MISSING_PATH_NAME(128, USER_ERROR),
INVALID_PLAN(129, USER_ERROR),
INVALID_VIEW_PROPERTY(130, USER_ERROR),
INVALID_ENTITY_KIND(131, USER_ERROR),
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.

Add StandardErrorCode.ILLEGAL_ENTITY_KIND

The commit message is wrong though it's too late.

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.

What is wrong with the commit message?

Copy link
Copy Markdown
Member

@ebyhr ebyhr Aug 5, 2024

Choose a reason for hiding this comment

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

The commit added INVALID_ENTITY_KIND, not ILLEGAL_ENTITY_KIND.

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.

The commit message says "illegal" while the error code const says "invalid". I guess that what's Yuya meant

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.

I didn't notice that and it's my fault

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.

4 participants