Summary.
- Non-reserved
- Removed:
- Added: AST, AT, BRANCH, CBO, COST, CRON, DCPROPERTIES, DEBUG, DISABLED, DISTRIBUTED, ENABLED, EVERY, EXECUTE, EXECUTED, EXPIRE_SNAPSHOTS, IGNORE, JOINCOST, MANAGED, MANAGEDLOCATION, OPTIMIZE, REMOTE, RESPECT, RETAIN, RETENTION, SCHEDULED, SET_CURRENT_SNAPSHOT, SNAPSHOTS, SPEC, SYSTEM_TIME, SYSTEM_VERSION, TAG, TRANSACTIONAL, TRIM, TYPE, UNKNOWN, URL, WITHIN
- Reserved
- Removed:
- Added: COMPACTIONID, CONNECTOR, CONNECTORS, CONVERT, DDL, FORCE, LEADING, OLDER, PKFK_JOIN, PREPARE, QUALIFY, REAL, SOME, THAN, TRAILING
The list of changed keywords.
git checkout rel/release-3.1.0
cat ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g| grep 'KW_' | sort > /tmp/keywords-3.1.0.txt
git checkout rel/release-4.0.0
cat parser/src/java/org/apache/hadoop/hive/ql/parse/HiveLexerParent.g| grep 'KW_' | sort > /tmp/keywords-4.0.0.txt
diff /tmp/keywords-3.1.0.txt /tmp/keywords-4.0.0.txt
17a18,19
> KW_AST: 'AST';
> KW_AT: 'AT';
25a28
> KW_BRANCH: 'BRANCH';
32a36
> KW_CBO: 'CBO';
35a40
> KW_CHERRY_PICK: 'CHERRY-PICK';
45a51
> KW_COMPACT_ID: 'COMPACTIONID';
50a57,58
> KW_CONVERT: 'CONVERT';
> KW_COST: 'COST';
51a60
> KW_CRON: 'CRON';
60a70,71
> KW_DATACONNECTOR: 'CONNECTOR';
> KW_DATACONNECTORS: 'CONNECTORS';
64a76,78
> KW_DCPROPERTIES: 'DCPROPERTIES';
> KW_DDL: 'DDL';
> KW_DEBUG: 'DEBUG';
77c91
< KW_DISABLE: 'DISABLE';
---
> KW_DISABLE: 'DISABLE' | 'DISABLED';
79a94
> KW_DISTRIBUTED: 'DISTRIBUTED';
87c102
< KW_ENABLE: 'ENABLE';
---
> KW_ENABLE: 'ENABLE' | 'ENABLED';
90a106
> KW_EVERY: 'EVERY';
93a110,111
> KW_EXECUTE: 'EXECUTE';
> KW_EXECUTED: 'EXECUTED';
94a113
> KW_EXPIRE_SNAPSHOTS: 'EXPIRE_SNAPSHOTS';
101a121
> KW_FAST_FORWARD: 'FAST-FORWARD';
110a131
> KW_FORCE: 'FORCE';
124a146
> KW_IGNORE: 'IGNORE';
142a165
> KW_JOINCOST: 'JOINCOST';
148a172
> KW_LEADING: 'LEADING';
162a187,188
> KW_MANAGED: 'MANAGED';
> KW_MANAGEDLOCATION: 'MANAGEDLOCATION';
185a212
> KW_OLDER: 'OLDER';
188a216
> KW_OPTIMIZE: 'OPTIMIZE';
191a220
> KW_ORPHAN_FILES: 'ORPHAN-FILES';
203a233
> KW_PKFK_JOIN: 'PKFK_JOIN';
209a240
> KW_PREPARE: 'PREPARE';
214a246
> KW_QUALIFY : 'QUALIFY';
220a253
> KW_REAL: 'REAL';
228a262
> KW_REMOTE: 'REMOTE';
235a270
> KW_RESPECT: 'RESPECT';
236a272,273
> KW_RETAIN: 'RETAIN';
> KW_RETENTION: 'RETENTION';
246a284
> KW_SCHEDULED: 'SCHEDULED';
257a296
> KW_SET_CURRENT_SNAPSHOT: 'SET_CURRENT_SNAPSHOT';
263a303,304
> KW_SNAPSHOTS: 'SNAPSHOTS';
> KW_SOME : 'SOME';
265a307
> KW_SPEC: 'SPEC';
275a318,319
> KW_SYSTEM_TIME: 'SYSTEM_TIME';
> KW_SYSTEM_VERSION: 'SYSTEM_VERSION';
278a323
> KW_TAG: 'TAG';
281a327
> KW_THAN: 'THAN';
288a335
> KW_TRAILING: 'TRAILING';
289a337
> KW_TRANSACTIONAL: 'TRANSACTIONAL';
292a341
> KW_TRIM: 'TRIM';
294a344
> KW_TYPE: 'TYPE';
301a352
> KW_UNKNOWN : 'UNKNOWN';
307a359
> KW_URL: 'URL';
326a379
> KW_WITHIN: 'WITHIN';
The list of non-reserved words.
git checkout rel/release-3.1.0
cat ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g | sed -n '/^nonReserved/,$p' > /tmp/non-reserved-3.1.0.txt
git checkout rel/release-4.0.0
cat parser/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g | sed -n '/^nonReserved/,$p' > /tmp/non-reserved-4.0.0.txt
diff /tmp/non-reserved-3.1.0.txt /tmp/non-reserved-4.0.0.txt
4,7c4,7
< | KW_CASCADE | KW_CHANGE | KW_CHECK | KW_CLUSTER | KW_CLUSTERED | KW_CLUSTERSTATUS | KW_COLLECTION | KW_COLUMNS
< | KW_COMMENT | KW_COMPACT | KW_COMPACTIONS | KW_COMPUTE | KW_CONCATENATE | KW_CONTINUE | KW_DATA | KW_DAY
< | KW_DATABASES | KW_DATETIME | KW_DBPROPERTIES | KW_DEFERRED | KW_DEFINED | KW_DELIMITED | KW_DEPENDENCY
< | KW_DESC | KW_DIRECTORIES | KW_DIRECTORY | KW_DISABLE | KW_DISTRIBUTE | KW_DOW | KW_ELEM_TYPE
---
> | KW_CASCADE | KW_CBO | KW_CHANGE | KW_CHECK | KW_CLUSTER | KW_CLUSTERED | KW_CLUSTERSTATUS | KW_COLLECTION | KW_COLUMNS
> | KW_COMMENT | KW_COMPACT | KW_COMPACTIONS | KW_COMPUTE | KW_CONCATENATE | KW_CONTINUE | KW_COST | KW_DATA | KW_DAY
> | KW_DATABASES | KW_DATETIME | KW_DBPROPERTIES | KW_DCPROPERTIES | KW_DEFERRED | KW_DEFINED | KW_DELIMITED | KW_DEPENDENCY
> | KW_DESC | KW_DIRECTORIES | KW_DIRECTORY | KW_DISABLE | KW_DISTRIBUTE | KW_DISTRIBUTED | KW_DOW | KW_ELEM_TYPE
9,12c9,12
< | KW_FIRST | KW_FORMAT | KW_FORMATTED | KW_FUNCTIONS | KW_HOLD_DDLTIME | KW_HOUR | KW_IDXPROPERTIES | KW_IGNORE
< | KW_INDEX | KW_INDEXES | KW_INPATH | KW_INPUTDRIVER | KW_INPUTFORMAT | KW_ITEMS | KW_JAR | KW_KILL
< | KW_KEYS | KW_KEY_TYPE | KW_LAST | KW_LIMIT | KW_OFFSET | KW_LINES | KW_LOAD | KW_LOCATION | KW_LOCK | KW_LOCKS | KW_LOGICAL | KW_LONG
< | KW_MAPJOIN | KW_MATERIALIZED | KW_METADATA | KW_MINUTE | KW_MONTH | KW_MSCK | KW_NOSCAN | KW_NO_DROP | KW_NULLS | KW_OFFLINE
---
> | KW_FIRST | KW_FORMAT | KW_FORMATTED | KW_FUNCTIONS | KW_HOLD_DDLTIME | KW_HOUR | KW_IDXPROPERTIES | KW_RESPECT | KW_IGNORE
> | KW_INDEX | KW_INDEXES | KW_INPATH | KW_INPUTDRIVER | KW_INPUTFORMAT | KW_ITEMS | KW_JAR | KW_JOINCOST | KW_KILL
> | KW_KEYS | KW_KEY_TYPE | KW_LAST | KW_LIMIT | KW_OFFSET | KW_LINES | KW_LOAD | KW_LOCATION | KW_LOCK | KW_LOCKS | KW_LOGICAL | KW_LONG | KW_MANAGED
> | KW_MANAGEDLOCATION | KW_MAPJOIN | KW_MATERIALIZED | KW_METADATA | KW_MINUTE | KW_MONTH | KW_MSCK | KW_NOSCAN | KW_NO_DROP | KW_NULLS | KW_OFFLINE
15c15
< | KW_RELOAD | KW_RENAME | KW_REPAIR | KW_REPLACE | KW_REPLICATION | KW_RESTRICT | KW_REWRITE
---
> | KW_RELOAD | KW_REMOTE | KW_RENAME | KW_REPAIR | KW_REPLACE | KW_REPLICATION | KW_RESTRICT | KW_REWRITE
17c17
< | KW_SHOW | KW_SHOW_DATABASE | KW_SKEWED | KW_SORT | KW_SORTED | KW_SSL | KW_STATISTICS | KW_STORED
---
> | KW_SHOW | KW_SHOW_DATABASE | KW_SKEWED | KW_SORT | KW_SORTED | KW_SSL | KW_STATISTICS | KW_STORED | KW_AST
19,20c19,20
< | KW_TINYINT | KW_TOUCH | KW_TRANSACTIONS | KW_UNARCHIVE | KW_UNDO | KW_UNIONTYPE | KW_UNLOCK | KW_UNSET
< | KW_UNSIGNED | KW_URI | KW_USE | KW_UTC | KW_UTCTIMESTAMP | KW_VALUE_TYPE | KW_VIEW | KW_WEEK | KW_WHILE | KW_YEAR
---
> | KW_TINYINT | KW_TOUCH | KW_TRANSACTIONAL | KW_TRANSACTIONS | KW_TYPE | KW_UNARCHIVE | KW_UNDO | KW_UNIONTYPE | KW_UNLOCK | KW_UNSET
> | KW_UNSIGNED | KW_URI | KW_URL | KW_USE | KW_UTC | KW_UTCTIMESTAMP | KW_VALUE_TYPE | KW_VIEW | KW_WEEK | KW_WHILE | KW_YEAR
40a41
> | KW_DEBUG
45a47
> | KW_EXECUTED | KW_SCHEDULED | KW_CRON | KW_EVERY | KW_AT | KW_EXECUTE
48c50,60
<
---
> | KW_UNKNOWN
> | KW_WITHIN
> | KW_TRIM
> | KW_SPEC
> | KW_SYSTEM_TIME | KW_SYSTEM_VERSION
> | KW_EXPIRE_SNAPSHOTS
> | KW_SET_CURRENT_SNAPSHOT
> | KW_BRANCH | KW_SNAPSHOTS | KW_RETAIN | KW_RETENTION
> | KW_TAG
> | KW_FAST_FORWARD
> | KW_OPTIMIZE
54c66
< KW_IF | KW_ARRAY | KW_MAP | KW_BIGINT | KW_BINARY | KW_BOOLEAN | KW_CURRENT_DATE | KW_CURRENT_TIMESTAMP | KW_DATE | KW_DOUBLE | KW_FLOAT | KW_GROUPING | KW_INT | KW_SMALLINT | KW_TIMESTAMP
---
> KW_IF | KW_ARRAY | KW_MAP | KW_BIGINT | KW_BINARY | KW_BOOLEAN | KW_CURRENT_DATE | KW_CURRENT_TIMESTAMP | KW_DATE | KW_DOUBLE | KW_FLOAT | KW_REAL | KW_GROUPING | KW_INT | KW_SMALLINT | KW_TIMESTAMP