HIVE-28446: Convert some reserved words to non-reserved words - #5394
Merged
Conversation
okumin
commented
Aug 15, 2024
| | KW_PKFK_JOIN | ||
| | KW_THAN | ||
| | KW_TIMESTAMPLOCALTZ | ||
| ; |
Contributor
Author
There was a problem hiding this comment.
Tickets and fix versions
- KW_APPLICATION: HIVE-18004(fix version=3.0.0)
- KW_COMPACT_ID: HIVE-26580(4.0.0)
- KW_DATACONNECTOR & KW_DATACONNECTORS: HIVE-24396(4.0.0)
- KW_DDL: HIVE-24596(4.0.0)
- KW_FORCE: HIVE-4367(4.0.0)
- KW_OLDER & KW_THAN: HIVE-27906(4.0.0)
- KW_PKFK_JOIN: HIVE-23817(maybe 4.0.0)
- KW_TIMESTAMPLOCALTZ: HIVE-16614(3.0.0)
- This could have replaced KW_TIMESTAMPTZ which is non-reserved
okumin
marked this pull request as ready for review
August 15, 2024 03:25
deniskuzZ
reviewed
Aug 28, 2024
| | KW_TIMESTAMPLOCALTZ -> TOK_TIMESTAMPLOCALTZ | ||
| //| KW_TIMESTAMPTZ -> TOK_TIMESTAMPTZ | ||
| | KW_TIMESTAMP KW_WITH KW_LOCAL KW_TIME KW_ZONE -> TOK_TIMESTAMPLOCALTZ | ||
| //| KW_TIMESTAMP KW_WITH KW_TIME KW_ZONE -> TOK_TIMESTAMPTZ |
Member
There was a problem hiding this comment.
should we drop this as well since TOK_TIMESTAMPTZ doesn't exist?
Contributor
Author
There was a problem hiding this comment.
You'll be right. I removed it.
03207b0
Also, I found some more extra words while addressing HIVE-19741. I cleaned them up in the same way.
a808727
|
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Contributor
Author
|
Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changes were proposed in this pull request?
Mark some reserved words as non-reserved based on the ANSI standard. I did the following.
Why are the changes needed?
We found some extra reserved keywords have been added while we were testing Hive 2 -> Hive 4. I guess some of them are intentionally reserved, but some of them are unintentionally reserved.
One point. We're not biased toward making everything non-reserved. It is OK to discard this PR and add all keywords to the WIKI.
Does this PR introduce any user-facing change?
Users can use the changed words without adding quotes.
This PR would not tighten any restrictions, so I assume this is backward compatible.
Is the change a dependency upgrade?
No.
How was this patch tested?
Added unit tests, and checked the behavior of Trino and PostgreSQL.