You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "okumin (via GitHub)" <gi...@apache.org> on 2024/08/14 12:48:21 UTC
[PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
okumin opened a new pull request, #5394:
URL: https://github.com/apache/hive/pull/5394
### What changes were proposed in this pull request?
Put some reserved words in the list of non-reserved words based on the ANSI standard. I did the following.
1. [Write unit tests using the existing parser](https://github.com/apache/hive/commit/40a2b31c9eeb602d773483bf9bab5581794c4799)
2. Pick up keywords that are not reserved in the ANSI standard based on the following sources
- https://www.postgresql.org/docs/9.5/sql-keywords-appendix.html
- SQL:2023
3. [Add as many keywords in the non-reserved list as possible](https://github.com/apache/hive/commit/67ec3600957ecc038aadd6c81c3d9ec186757715)
Some keywords are still reserved because of the convenience of the Hive parser. I added comments in those cases.
### Why are the changes needed?
We found extra reserved keywords have been added since Hive 2 while we were testing Hive 4. I guess most of them can be reserved.
### Does this PR introduce _any_ user-facing change?
Users can use the changed words without adding quotes.
### Is the change a dependency upgrade?
No.
### How was this patch tested?
Unit tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2290585626
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1717006930
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g:
##########
@@ -988,10 +988,32 @@ nonReserved
| KW_TAG
| KW_FAST_FORWARD
| KW_OPTIMIZE
+ | KW_APPLICATION
+ | KW_COMPACT_ID
+ | KW_CONF
+ | KW_DATACONNECTOR
+ | KW_DATACONNECTORS
+ | KW_DATABASE
+ | KW_DDL
+ | KW_EXCHANGE
+ | KW_EXTENDED
+ | KW_FOLLOWING
+ | KW_FORCE
+ | KW_IF
+ | KW_LESS
+ | KW_MACRO
+ | KW_MORE
+ | KW_OLDER
+ | KW_PKFK_JOIN
+ | KW_PRECEDING
+ | KW_SYNC
+ | KW_THAN
+ | KW_TIMESTAMPLOCALTZ
+ | KW_UNBOUNDED
;
Review Comment:
The current commit maximized the number of non-reserved words. But I think some of them(or all?) are intentionally configured. I guess we would like to revert some of them.
https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl#LanguageManualDDL-Keywords,Non-reservedKeywordsandReservedKeywords
Just for convenience,
- Introduced by 1.2.0
- CONF, DATABASE, EXCHANGE, EXTENDED, FOLLOWING, IF, LESS, MACRO, MORE, PRECEDING, UNBOUNDED
- Introduced by 3.0.0
- SYNC
- Not mentioned in the document
- APPLICATION, COMPACTIONID, CONNECTOR, CONNECTORS, DDL, FORCE, OLDER, PKFK_JOIN, THAN, TIMESTAMPLOCALTZ
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2315262917
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1818674950
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:
##########
@@ -263,11 +263,8 @@ TOK_TABLEROWFORMATLINES;
TOK_TABLEROWFORMATNULL;
TOK_TABLEFILEFORMAT;
TOK_FILEFORMAT_GENERIC;
-TOK_OFFLINE;
TOK_ENABLE;
TOK_DISABLE;
-TOK_READONLY;
Review Comment:
why is that removed? is it legacy and not used anymore?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2288866860
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1734530696
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:
##########
@@ -2438,7 +2438,6 @@ primitiveType
| KW_DATETIME -> TOK_DATETIME
| KW_TIMESTAMP -> TOK_TIMESTAMP
| 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
Review Comment:
You'll be right. I removed it.
https://github.com/apache/hive/pull/5394/commits/03207b02c11b914cabf17d993621c0fdbb7802f2
Also, I found some more extra words while addressing HIVE-19741. I cleaned them up in the same way.
https://github.com/apache/hive/pull/5394/commits/a808727e2c6444b5089c595690dfcaa30269ebda
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1818674950
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:
##########
@@ -263,11 +263,8 @@ TOK_TABLEROWFORMATLINES;
TOK_TABLEROWFORMATNULL;
TOK_TABLEFILEFORMAT;
TOK_FILEFORMAT_GENERIC;
-TOK_OFFLINE;
TOK_ENABLE;
TOK_DISABLE;
-TOK_READONLY;
Review Comment:
why is that removed? is it legacy and not used anymore?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1717006930
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g:
##########
@@ -988,10 +988,32 @@ nonReserved
| KW_TAG
| KW_FAST_FORWARD
| KW_OPTIMIZE
+ | KW_APPLICATION
+ | KW_COMPACT_ID
+ | KW_CONF
+ | KW_DATACONNECTOR
+ | KW_DATACONNECTORS
+ | KW_DATABASE
+ | KW_DDL
+ | KW_EXCHANGE
+ | KW_EXTENDED
+ | KW_FOLLOWING
+ | KW_FORCE
+ | KW_IF
+ | KW_LESS
+ | KW_MACRO
+ | KW_MORE
+ | KW_OLDER
+ | KW_PKFK_JOIN
+ | KW_PRECEDING
+ | KW_SYNC
+ | KW_THAN
+ | KW_TIMESTAMPLOCALTZ
+ | KW_UNBOUNDED
;
Review Comment:
The current commit maximized the number of non-reserved words. But I think some of them(or all?) are intentionally configured. I guess we would like to revert some of them.
https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl#LanguageManualDDL-Keywords,Non-reservedKeywordsandReservedKeywords
Just for convenience,
- Introduced by 1.2.0
- CONF, DATABASE, EXCHANGE, EXTENDED, FOLLOWING, IF, LESS, MACRO, MORE, PRECEDING, UNBOUNDED
- Introduced by 3.0.0
- SYNC
- Not mentioned in the document
- APPLICATION, COMPACTIONID, CONNECTOR, CONNECTORS, DDL, FORCE, OLDER, PKFK_JOIN, THAN, TIMESTAMPLOCALTZ
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ merged PR #5394:
URL: https://github.com/apache/hive/pull/5394
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2440253279
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.
Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1734387197
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:
##########
@@ -2438,7 +2438,6 @@ primitiveType
| KW_DATETIME -> TOK_DATETIME
| KW_TIMESTAMP -> TOK_TIMESTAMP
| 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
Review Comment:
should we drop this as well?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2441311827
Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "sonarcloud[bot] (via GitHub)" <gi...@apache.org>.
sonarcloud[bot] commented on PR #5394:
URL: https://github.com/apache/hive/pull/5394#issuecomment-2289565441
## [](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394) **Quality Gate passed**
Issues
 [1 New issue](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_hive&pullRequest=5394&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_hive&pullRequest=5394&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_hive&pullRequest=5394&metric=new_duplicated_lines_density&view=list)
[See analysis details on SonarCloud](https://sonarcloud.io/dashboard?id=apache_hive&pullRequest=5394)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "deniskuzZ (via GitHub)" <gi...@apache.org>.
deniskuzZ commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1734387197
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g:
##########
@@ -2438,7 +2438,6 @@ primitiveType
| KW_DATETIME -> TOK_DATETIME
| KW_TIMESTAMP -> TOK_TIMESTAMP
| 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
Review Comment:
should we drop this as well since `TOK_TIMESTAMPTZ` doesn't exist?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1717831669
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g:
##########
@@ -988,6 +988,16 @@ nonReserved
| KW_TAG
| KW_FAST_FORWARD
| KW_OPTIMIZE
+ | KW_APPLICATION
+ | KW_COMPACT_ID
+ | KW_DATACONNECTOR
+ | KW_DATACONNECTORS
+ | KW_DDL
+ | KW_FORCE
+ | KW_OLDER
+ | KW_PKFK_JOIN
+ | KW_THAN
+ | KW_TIMESTAMPLOCALTZ
;
Review 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](https://github.com/apache/hive/commit/34eebff194e81180202d198200e84058c4910d95#diff-0873af31a12d73e96355bffe6b8a1435c958c744231f0ccd3f80d057920cb8ce)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org
Re: [PR] HIVE-28446: Convert some reserved words to non-reserved words [hive]
Posted by "okumin (via GitHub)" <gi...@apache.org>.
okumin commented on code in PR #5394:
URL: https://github.com/apache/hive/pull/5394#discussion_r1717831669
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g:
##########
@@ -988,6 +988,16 @@ nonReserved
| KW_TAG
| KW_FAST_FORWARD
| KW_OPTIMIZE
+ | KW_APPLICATION
+ | KW_COMPACT_ID
+ | KW_DATACONNECTOR
+ | KW_DATACONNECTORS
+ | KW_DDL
+ | KW_FORCE
+ | KW_OLDER
+ | KW_PKFK_JOIN
+ | KW_THAN
+ | KW_TIMESTAMPLOCALTZ
;
Review 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](https://github.com/apache/hive/commit/34eebff194e81180202d198200e84058c4910d95#diff-0873af31a12d73e96355bffe6b8a1435c958c744231f0ccd3f80d057920cb8ce) which is reserved
##########
parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g:
##########
@@ -988,6 +988,16 @@ nonReserved
| KW_TAG
| KW_FAST_FORWARD
| KW_OPTIMIZE
+ | KW_APPLICATION
+ | KW_COMPACT_ID
+ | KW_DATACONNECTOR
+ | KW_DATACONNECTORS
+ | KW_DDL
+ | KW_FORCE
+ | KW_OLDER
+ | KW_PKFK_JOIN
+ | KW_THAN
+ | KW_TIMESTAMPLOCALTZ
;
Review 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](https://github.com/apache/hive/commit/34eebff194e81180202d198200e84058c4910d95#diff-0873af31a12d73e96355bffe6b8a1435c958c744231f0ccd3f80d057920cb8ce) which is non-reserved
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org