feat(flink): modify grammar to match keywords

This commit is contained in:
Erindcl 2020-12-08 16:04:56 +08:00
parent cc1d5abcdd
commit e67f991ede
11 changed files with 7148 additions and 4976 deletions

View File

@ -127,25 +127,8 @@ TRAILING: 'TRAILING';
IF: 'IF'; IF: 'IF';
POSITION: 'POSITION'; POSITION: 'POSITION';
EXTRACT: 'EXTRACT'; EXTRACT: 'EXTRACT';
EQ: 'EQ';
NSEQ: 'NSEQ';
NEQ: 'NEQ';
NEQJ: 'NEQJ';
LT: 'LT';
LTE: 'LTE';
GT: 'GT';
GTE: 'GTE';
PLUS: 'PLUS';
MINUS: 'MINUS'; MINUS: 'MINUS';
ASTERISK: 'ASTERISK';
SLASH: 'SLASH';
PERCENT: 'PERCENT';
DIV: 'DIV'; DIV: 'DIV';
TILDE: 'TILDE';
AMPERSAND: 'AMPERSAND';
PIPE: 'PIPE';
CONCAT_PIPE: 'CONCAT_PIPE';
HAT: 'HAT';
PERCENTLIT: 'PERCENTLIT'; PERCENTLIT: 'PERCENTLIT';
BUCKET: 'BUCKET'; BUCKET: 'BUCKET';
OUT: 'OUT'; OUT: 'OUT';
@ -240,23 +223,14 @@ LOCAL: 'LOCAL';
INPATH: 'INPATH'; INPATH: 'INPATH';
WATERMARK: 'WATERMARK'; WATERMARK: 'WATERMARK';
UNNEST: 'UNNEST'; UNNEST: 'UNNEST';
MATCH_RECOGNIZE: 'MATCH_RECOGNIZE';
MEASURES: 'MEASURES';
ONE: 'ONE';
PER: 'PER';
MATCH: 'MATCH'; MATCH: 'MATCH';
SKIP1: 'SKIP1';
NEXT: 'NEXT'; NEXT: 'NEXT';
PAST: 'PAST';
PATTERN: 'PATTERN';
WITHIN: 'WITHIN'; WITHIN: 'WITHIN';
DEFINE: 'DEFINE';
WS: 'WS'; WS: 'WS';
SYSTEM: 'SYSTEM'; SYSTEM: 'SYSTEM';
INCLUDING: 'INCLUDING'; INCLUDING: 'INCLUDING';
EXCLUDING: 'EXCLUDING'; EXCLUDING: 'EXCLUDING';
CONSTRAINTS: 'CONSTRAINTS'; CONSTRAINTS: 'CONSTRAINTS';
OVERWRITING: 'OVERWRITING';
GENERATED: 'GENERATED'; GENERATED: 'GENERATED';
CATALOG: 'CATALOG'; CATALOG: 'CATALOG';
LANGUAGE: 'LANGUAGE'; LANGUAGE: 'LANGUAGE';

View File

@ -463,11 +463,14 @@ identifierSeq
identifier identifier
: strictIdentifier : strictIdentifier
| strictNonReserved
; ;
strictIdentifier strictIdentifier
: unquotedIdentifier #unquotedIdentifierAlternative : unquotedIdentifier #unquotedIdentifierAlternative
| quotedIdentifier #quotedIdentifierAlternative | quotedIdentifier #quotedIdentifierAlternative
| ansiNonReserved #ansiNonReservedKeywords
| nonReserved #nonReservedKeywords
; ;
unquotedIdentifier unquotedIdentifier
@ -574,3 +577,468 @@ setQuantifier
: DISTINCT : DISTINCT
| ALL | ALL
; ;
ansiNonReserved
: ADD
| AFTER
| ALTER
| ANALYZE
| ANTI
| ARCHIVE
| ARRAY
| ASC
| AT
| BETWEEN
| BIGINT
| BINARY
| BOOLEAN
| BUCKET
| BUCKETS
| BY
| BYTES
| CACHE
| CASCADE
| CATALOG
| CATALOGS
| CHANGE
| CHAR
| CLEAR
| CLUSTER
| CLUSTERED
| CODEGEN
| COLLECTION
| COLUMNS
| COMMENT
| COMMIT
| COMPACT
| COMPACTIONS
| COMPUTE
| CONCATENATE
| CONSTRAINTS
| COST
| CUBE
| CURRENT
| DATA
| DATABASE
| DATABASES
| DATE
| DATETIME
| DBPROPERTIES
| DECIMAL
| DEFINED
| DELETE
| DELIMITED
| DESC
| DESCRIBE
| DFS
| DIRECTORIES
| DIRECTORY
| DISTRIBUTE
| DIV
| DOUBLE
| DROP
| ESCAPED
| EXCHANGE
| EXCLUDING
| EXISTS
| EXPLAIN
| EXPORT
| EXTENDED
| EXTERNAL
| EXTRACT
| FIELDS
| FILEFORMAT
| FIRST
| FLOAT
| FOLLOWING
| FORMAT
| FORMATTED
| FUNCTION
| FUNCTIONS
| GENERATED
| GLOBAL
| GROUPING
| IF
| IGNORE
| IMPORT
| INCLUDING
| INDEX
| INDEXES
| INPATH
| INPUTFORMAT
| INSERT
| INT
| INTERVAL
| ITEMS
| KEY
| KEYS
| LANGUAGE
| LAST
| LATERAL
| LAZY
| LIKE
| LIMIT
| LINES
| LIST
| LOAD
| LOCAL
| LOCATION
| LOCK
| LOCKS
| LOGICAL
| MACRO
| MAP
| MATCH
| MINUS
| MSCK
| MULTISET
| NEXT
| NO
| NULL
| NULLS
| OF
| OPTION
| OPTIONS
| OUT
| OUTPUTFORMAT
| OVER
| OVERWRITE
| PARTITION
| PARTITIONED
| PARTITIONS
| PERCENTLIT
| PERIOD
| PIVOT
| POSITION
| PRECEDING
| PRINCIPALS
| PURGE
| RANGE
| RAW
| RECORDREADER
| RECORDWRITER
| RECOVER
| REDUCE
| REFRESH
| RENAME
| REPAIR
| REPLACE
| RESET
| RESTRICT
| REVOKE
| RLIKE
| ROLE
| ROLES
| ROLLBACK
| ROLLUP
| ROW
| ROWS
| SEMI
| SEPARATED
| SERDE
| SERDEPROPERTIES
| SET
| SETMINUS
| SETS
| SHOW
| SKEWED
| SMALLINT
| SORT
| SORTED
| START
| STATISTICS
| STORED
| STRATIFY
| STRING
| STRUCT
| SYSTEM
| SYSTEM_TIME
| TABLES
| TABLESAMPLE
| TBLPROPERTIES
| TEMPORARY
| TERMINATED
| TIME
| TIMESTAMP
| TINYINT
| TOUCH
| TRANSACTION
| TRANSACTIONS
| TRANSFORM
| TRUE
| TRUNCATE
| UNARCHIVE
| UNBOUNDED
| UNCACHE
| UNLOCK
| UNSET
| UNNEST
| USE
| VALUES
| VARBINARY
| VARCHAR
| VIEW
| VIEWS
| WATERMARK
| WINDOW
| WITHIN
| WS
;
strictNonReserved
: ANTI
| CROSS
| EXCEPT
| FULL
| INNER
| INTERSECT
| JOIN
| LEFT
| NATURAL
| ON
| RIGHT
| SEMI
| SETMINUS
| UNION
| USING
;
nonReserved
: ADD
| AFTER
| ALL
| ALTER
| ANALYZE
| AND
| ANY
| COLUMNS
| ARRAY
| AS
| ASC
| AT
| BETWEEN
| BIGINT
| BINARY
| BOOLEAN
| BOTH
| BUCKET
| BUCKETS
| BY
| BYTES
| CACHE
| CASCADE
| CASE
| CAST
| CATALOG
| CATALOGS
| CHANGE
| CHAR
| CLEAR
| CLUSTER
| CLUSTERED
| CODEGEN
| COLLECTION
| COLUMN
| COLUMNS
| COMMENT
| COMMIT
| COMPACT
| COMPACTIONS
| COMPUTE
| CONCATENATE
| CONSTRAINT
| CONSTRAINTS
| COST
| CREATE
| CUBE
| CURRENT
| DATA
| DATABASE
| DATABASES
| DATE
| DATETIME
| DBPROPERTIES
| DECIMAL
| DEFINED
| DELETE
| DELIMITED
| DESC
| DESCRIBE
| DFS
| DIRECTORIES
| DIRECTORY
| DISTINCT
| DISTRIBUTE
| DIV
| DOUBLE
| DROP
| ELSE
| END
| ESCAPED
| EXCHANGE
| EXCLUDING
| EXISTS
| EXPLAIN
| EXPORT
| EXTENDED
| EXTERNAL
| EXTRACT
| FALSE
| FIELDS
| FILEFORMAT
| FIRST
| FLOAT
| FOLLOWING
| FOR
| FORMAT
| FORMATTED
| FROM
| FUNCTION
| FUNCTIONS
| GENERATED
| GLOBAL
| GRANT
| GROUP
| GROUPING
| HAVING
| IF
| IGNORE
| IMPORT
| IN
| INCLUDING
| INDEX
| INDEXES
| INPATH
| INPUTFORMAT
| INSERT
| INT
| INTERVAL
| INTO
| IS
| ITEMS
| KEY
| KEYS
| LANGUAGE
| LAST
| LATERAL
| LAZY
| LEADING
| LIKE
| LIMIT
| LINES
| LIST
| LOAD
| LOCAL
| LOCATION
| LOCK
| LOCKS
| LOGICAL
| MACRO
| MAP
| MATCH
| MINUS
| MSCK
| MULTISET
| NEXT
| NO
| NOT
| NULL
| NULLS
| OF
| OPTION
| OPTIONS
| OR
| ORDER
| OUT
| OUTER
| OUTPUTFORMAT
| OVER
| OVERWRITE
| PARTITION
| PARTITIONED
| PARTITIONS
| PERCENTLIT
| PERIOD
| PIVOT
| POSITION
| PRECEDING
| PRIMARY
| PRINCIPALS
| PURGE
| RANGE
| RAW
| RECORDREADER
| RECORDWRITER
| RECOVER
| REDUCE
| REFRESH
| RENAME
| REPAIR
| REPLACE
| RESET
| RESTRICT
| REVOKE
| RLIKE
| ROLE
| ROLES
| ROLLBACK
| ROLLUP
| ROW
| ROWS
| SELECT
| SEPARATED
| SERDE
| SERDEPROPERTIES
| SET
| SETS
| SHOW
| SKEWED
| SMALLINT
| SORT
| SORTED
| START
| STATISTICS
| STORED
| STRATIFY
| STRING
| STRUCT
| SYSTEM
| SYSTEM_TIME
| TABLE
| TABLES
| TABLESAMPLE
| TBLPROPERTIES
| TEMPORARY
| TERMINATED
| THEN
| TIME
| TIMESTAMP
| TINYINT
| TO
| TOUCH
| TRAILING
| TRANSACTION
| TRANSACTIONS
| TRANSFORM
| TRUE
| TRUNCATE
| UNARCHIVE
| UNBOUNDED
| UNCACHE
| UNLOCK
| UNSET
| UNNEST
| USE
| VALUES
| VARBINARY
| VARCHAR
| VIEW
| VIEWS
| WATERMARK
| WHEN
| WHERE
| WINDOW
| WITH
| WITHIN
| WS
;

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -116,205 +116,179 @@ TRAILING=115
IF=116 IF=116
POSITION=117 POSITION=117
EXTRACT=118 EXTRACT=118
EQ=119 MINUS=119
NSEQ=120 DIV=120
NEQ=121 PERCENTLIT=121
NEQJ=122 BUCKET=122
LT=123 OUT=123
LTE=124 OF=124
GT=125 SORT=125
GTE=126 CLUSTER=126
PLUS=127 DISTRIBUTE=127
MINUS=128 OVERWRITE=128
ASTERISK=129 TRANSFORM=129
SLASH=130 REDUCE=130
PERCENT=131 USING=131
DIV=132 SERDE=132
TILDE=133 SERDEPROPERTIES=133
AMPERSAND=134 RECORDREADER=134
PIPE=135 RECORDWRITER=135
CONCAT_PIPE=136 DELIMITED=136
HAT=137 FIELDS=137
PERCENTLIT=138 TERMINATED=138
BUCKET=139 COLLECTION=139
OUT=140 ITEMS=140
OF=141 KEYS=141
SORT=142 ESCAPED=142
CLUSTER=143 LINES=143
DISTRIBUTE=144 SEPARATED=144
OVERWRITE=145 FUNCTION=145
TRANSFORM=146 EXTENDED=146
REDUCE=147 REFRESH=147
USING=148 CLEAR=148
SERDE=149 CACHE=149
SERDEPROPERTIES=150 UNCACHE=150
RECORDREADER=151 LAZY=151
RECORDWRITER=152 FORMATTED=152
DELIMITED=153 GLOBAL=153
FIELDS=154 TEMPORARY=154
TERMINATED=155 OPTIONS=155
COLLECTION=156 UNSET=156
ITEMS=157 TBLPROPERTIES=157
KEYS=158 DBPROPERTIES=158
ESCAPED=159 BUCKETS=159
LINES=160 SKEWED=160
SEPARATED=161 STORED=161
FUNCTION=162 DIRECTORIES=162
EXTENDED=163 LOCATION=163
REFRESH=164 EXCHANGE=164
CLEAR=165 ARCHIVE=165
CACHE=166 UNARCHIVE=166
UNCACHE=167 FILEFORMAT=167
LAZY=168 TOUCH=168
FORMATTED=169 COMPACT=169
GLOBAL=170 CONCATENATE=170
TEMPORARY=171 CHANGE=171
OPTIONS=172 CASCADE=172
UNSET=173 CONSTRAINT=173
TBLPROPERTIES=174 RESTRICT=174
DBPROPERTIES=175 CLUSTERED=175
BUCKETS=176 SORTED=176
SKEWED=177 PURGE=177
STORED=178 INPUTFORMAT=178
DIRECTORIES=179 OUTPUTFORMAT=179
LOCATION=180 DATABASE=180
EXCHANGE=181 DATABASES=181
ARCHIVE=182 DFS=182
UNARCHIVE=183 TRUNCATE=183
FILEFORMAT=184 ANALYZE=184
TOUCH=185 COMPUTE=185
COMPACT=186 LIST=186
CONCATENATE=187 STATISTICS=187
CHANGE=188 PARTITIONED=188
CASCADE=189 EXTERNAL=189
CONSTRAINT=190 DEFINED=190
RESTRICT=191 REVOKE=191
CLUSTERED=192 GRANT=192
SORTED=193 LOCK=193
PURGE=194 UNLOCK=194
INPUTFORMAT=195 MSCK=195
OUTPUTFORMAT=196 REPAIR=196
DATABASE=197 RECOVER=197
DATABASES=198 EXPORT=198
DFS=199 IMPORT=199
TRUNCATE=200 LOAD=200
ANALYZE=201 ROLE=201
COMPUTE=202 ROLES=202
LIST=203 COMPACTIONS=203
STATISTICS=204 PRINCIPALS=204
PARTITIONED=205 TRANSACTIONS=205
EXTERNAL=206 INDEX=206
DEFINED=207 INDEXES=207
REVOKE=208 LOCKS=208
GRANT=209 OPTION=209
LOCK=210 ANTI=210
UNLOCK=211 LOCAL=211
MSCK=212 INPATH=212
REPAIR=213 WATERMARK=213
RECOVER=214 UNNEST=214
EXPORT=215 MATCH=215
IMPORT=216 NEXT=216
LOAD=217 WITHIN=217
ROLE=218 WS=218
ROLES=219 SYSTEM=219
COMPACTIONS=220 INCLUDING=220
PRINCIPALS=221 EXCLUDING=221
TRANSACTIONS=222 CONSTRAINTS=222
INDEX=223 GENERATED=223
INDEXES=224 CATALOG=224
LOCKS=225 LANGUAGE=225
OPTION=226 CATALOGS=226
ANTI=227 VIEWS=227
LOCAL=228 PRIMARY=228
INPATH=229 KEY=229
WATERMARK=230 PERIOD=230
UNNEST=231 SYSTEM_TIME=231
MATCH_RECOGNIZE=232 STRING=232
MEASURES=233 ARRAY=233
ONE=234 MAP=234
PER=235 CHAR=235
MATCH=236 VARCHAR=236
SKIP1=237 BINARY=237
NEXT=238 VARBINARY=238
PAST=239 BYTES=239
PATTERN=240 DECIMAL=240
WITHIN=241 TINYINT=241
DEFINE=242 SMALLINT=242
WS=243 INT=243
SYSTEM=244 BIGINT=244
INCLUDING=245 FLOAT=245
EXCLUDING=246 DOUBLE=246
CONSTRAINTS=247 DATE=247
OVERWRITING=248 TIME=248
GENERATED=249 TIMESTAMP=249
CATALOG=250 MULTISET=250
LANGUAGE=251 BOOLEAN=251
CATALOGS=252 RAW=252
VIEWS=253 ROW=253
PRIMARY=254 NULL=254
KEY=255 DATETIME=255
PERIOD=256 EQUAL_SYMBOL=256
SYSTEM_TIME=257 GREATER_SYMBOL=257
STRING=258 LESS_SYMBOL=258
ARRAY=259 EXCLAMATION_SYMBOL=259
MAP=260 BIT_NOT_OP=260
CHAR=261 BIT_OR_OP=261
VARCHAR=262 BIT_AND_OP=262
BINARY=263 BIT_XOR_OP=263
VARBINARY=264 DOT=264
BYTES=265 LS_BRACKET=265
DECIMAL=266 RS_BRACKET=266
TINYINT=267 LR_BRACKET=267
SMALLINT=268 RR_BRACKET=268
INT=269 COMMA=269
BIGINT=270 SEMICOLON=270
FLOAT=271 AT_SIGN=271
DOUBLE=272 SINGLE_QUOTE_SYMB=272
DATE=273 DOUBLE_QUOTE_SYMB=273
TIME=274 REVERSE_QUOTE_SYMB=274
TIMESTAMP=275 COLON_SYMB=275
MULTISET=276 ASTERISK_SIGN=276
BOOLEAN=277 UNDERLINE_SIGN=277
RAW=278 HYPNEN_SIGN=278
ROW=279 ADD_SIGN=279
NULL=280 PENCENT_SIGN=280
DATETIME=281 DOUBLE_VERTICAL_SIGN=281
EQUAL_SYMBOL=282 DOUBLE_HYPNEN_SIGN=282
GREATER_SYMBOL=283 SLASH_SIGN=283
LESS_SYMBOL=284 DOT_ID=284
EXCLAMATION_SYMBOL=285 PLUS_DOT_ID=285
BIT_NOT_OP=286 STRING_LITERAL=286
BIT_OR_OP=287 DIG_LITERAL=287
BIT_AND_OP=288 REAL_LITERAL=288
BIT_XOR_OP=289 BIT_STRING=289
DOT=290 ID_LITERAL=290
LS_BRACKET=291 PLUS_ID_LITERAL=291
RS_BRACKET=292
LR_BRACKET=293
RR_BRACKET=294
COMMA=295
SEMICOLON=296
AT_SIGN=297
SINGLE_QUOTE_SYMB=298
DOUBLE_QUOTE_SYMB=299
REVERSE_QUOTE_SYMB=300
COLON_SYMB=301
ASTERISK_SIGN=302
UNDERLINE_SIGN=303
HYPNEN_SIGN=304
ADD_SIGN=305
PENCENT_SIGN=306
DOUBLE_VERTICAL_SIGN=307
DOUBLE_HYPNEN_SIGN=308
SLASH_SIGN=309
DOT_ID=310
PLUS_DOT_ID=311
STRING_LITERAL=312
DIG_LITERAL=313
REAL_LITERAL=314
BIT_STRING=315
ID_LITERAL=316
PLUS_ID_LITERAL=317
'SELECT'=4 'SELECT'=4
'FROM'=5 'FROM'=5
'ADD'=6 'ADD'=6
@ -430,194 +404,168 @@ PLUS_ID_LITERAL=317
'IF'=116 'IF'=116
'POSITION'=117 'POSITION'=117
'EXTRACT'=118 'EXTRACT'=118
'EQ'=119 'MINUS'=119
'NSEQ'=120 'DIV'=120
'NEQ'=121 'PERCENTLIT'=121
'NEQJ'=122 'BUCKET'=122
'LT'=123 'OUT'=123
'LTE'=124 'OF'=124
'GT'=125 'SORT'=125
'GTE'=126 'CLUSTER'=126
'PLUS'=127 'DISTRIBUTE'=127
'MINUS'=128 'OVERWRITE'=128
'ASTERISK'=129 'TRANSFORM'=129
'SLASH'=130 'REDUCE'=130
'PERCENT'=131 'USING'=131
'DIV'=132 'SERDE'=132
'TILDE'=133 'SERDEPROPERTIES'=133
'AMPERSAND'=134 'RECORDREADER'=134
'PIPE'=135 'RECORDWRITER'=135
'CONCAT_PIPE'=136 'DELIMITED'=136
'HAT'=137 'FIELDS'=137
'PERCENTLIT'=138 'TERMINATED'=138
'BUCKET'=139 'COLLECTION'=139
'OUT'=140 'ITEMS'=140
'OF'=141 'KEYS'=141
'SORT'=142 'ESCAPED'=142
'CLUSTER'=143 'LINES'=143
'DISTRIBUTE'=144 'SEPARATED'=144
'OVERWRITE'=145 'FUNCTION'=145
'TRANSFORM'=146 'EXTENDED'=146
'REDUCE'=147 'REFRESH'=147
'USING'=148 'CLEAR'=148
'SERDE'=149 'CACHE'=149
'SERDEPROPERTIES'=150 'UNCACHE'=150
'RECORDREADER'=151 'LAZY'=151
'RECORDWRITER'=152 'FORMATTED'=152
'DELIMITED'=153 'GLOBAL'=153
'FIELDS'=154 'TEMPORARY'=154
'TERMINATED'=155 'OPTIONS'=155
'COLLECTION'=156 'UNSET'=156
'ITEMS'=157 'TBLPROPERTIES'=157
'KEYS'=158 'DBPROPERTIES'=158
'ESCAPED'=159 'BUCKETS'=159
'LINES'=160 'SKEWED'=160
'SEPARATED'=161 'STORED'=161
'FUNCTION'=162 'DIRECTORIES'=162
'EXTENDED'=163 'LOCATION'=163
'REFRESH'=164 'EXCHANGE'=164
'CLEAR'=165 'ARCHIVE'=165
'CACHE'=166 'UNARCHIVE'=166
'UNCACHE'=167 'FILEFORMAT'=167
'LAZY'=168 'TOUCH'=168
'FORMATTED'=169 'COMPACT'=169
'GLOBAL'=170 'CONCATENATE'=170
'TEMPORARY'=171 'CHANGE'=171
'OPTIONS'=172 'CASCADE'=172
'UNSET'=173 'CONSTRAINT'=173
'TBLPROPERTIES'=174 'RESTRICT'=174
'DBPROPERTIES'=175 'CLUSTERED'=175
'BUCKETS'=176 'SORTED'=176
'SKEWED'=177 'PURGE'=177
'STORED'=178 'INPUTFORMAT'=178
'DIRECTORIES'=179 'OUTPUTFORMAT'=179
'LOCATION'=180 'DATABASE'=180
'EXCHANGE'=181 'DATABASES'=181
'ARCHIVE'=182 'DFS'=182
'UNARCHIVE'=183 'TRUNCATE'=183
'FILEFORMAT'=184 'ANALYZE'=184
'TOUCH'=185 'COMPUTE'=185
'COMPACT'=186 'LIST'=186
'CONCATENATE'=187 'STATISTICS'=187
'CHANGE'=188 'PARTITIONED'=188
'CASCADE'=189 'EXTERNAL'=189
'CONSTRAINT'=190 'DEFINED'=190
'RESTRICT'=191 'REVOKE'=191
'CLUSTERED'=192 'GRANT'=192
'SORTED'=193 'LOCK'=193
'PURGE'=194 'UNLOCK'=194
'INPUTFORMAT'=195 'MSCK'=195
'OUTPUTFORMAT'=196 'REPAIR'=196
'DATABASE'=197 'RECOVER'=197
'DATABASES'=198 'EXPORT'=198
'DFS'=199 'IMPORT'=199
'TRUNCATE'=200 'LOAD'=200
'ANALYZE'=201 'ROLE'=201
'COMPUTE'=202 'ROLES'=202
'LIST'=203 'COMPACTIONS'=203
'STATISTICS'=204 'PRINCIPALS'=204
'PARTITIONED'=205 'TRANSACTIONS'=205
'EXTERNAL'=206 'INDEX'=206
'DEFINED'=207 'INDEXES'=207
'REVOKE'=208 'LOCKS'=208
'GRANT'=209 'OPTION'=209
'LOCK'=210 'ANTI'=210
'UNLOCK'=211 'LOCAL'=211
'MSCK'=212 'INPATH'=212
'REPAIR'=213 'WATERMARK'=213
'RECOVER'=214 'UNNEST'=214
'EXPORT'=215 'MATCH'=215
'IMPORT'=216 'NEXT'=216
'LOAD'=217 'WITHIN'=217
'ROLE'=218 'WS'=218
'ROLES'=219 'SYSTEM'=219
'COMPACTIONS'=220 'INCLUDING'=220
'PRINCIPALS'=221 'EXCLUDING'=221
'TRANSACTIONS'=222 'CONSTRAINTS'=222
'INDEX'=223 'GENERATED'=223
'INDEXES'=224 'CATALOG'=224
'LOCKS'=225 'LANGUAGE'=225
'OPTION'=226 'CATALOGS'=226
'ANTI'=227 'VIEWS'=227
'LOCAL'=228 'PRIMARY'=228
'INPATH'=229 'KEY'=229
'WATERMARK'=230 'PERIOD'=230
'UNNEST'=231 'SYSTEM_TIME'=231
'MATCH_RECOGNIZE'=232 'STRING'=232
'MEASURES'=233 'ARRAY'=233
'ONE'=234 'MAP'=234
'PER'=235 'CHAR'=235
'MATCH'=236 'VARCHAR'=236
'SKIP1'=237 'BINARY'=237
'NEXT'=238 'VARBINARY'=238
'PAST'=239 'BYTES'=239
'PATTERN'=240 'DECIMAL'=240
'WITHIN'=241 'TINYINT'=241
'DEFINE'=242 'SMALLINT'=242
'WS'=243 'INT'=243
'SYSTEM'=244 'BIGINT'=244
'INCLUDING'=245 'FLOAT'=245
'EXCLUDING'=246 'DOUBLE'=246
'CONSTRAINTS'=247 'DATE'=247
'OVERWRITING'=248 'TIME'=248
'GENERATED'=249 'TIMESTAMP'=249
'CATALOG'=250 'MULTISET'=250
'LANGUAGE'=251 'BOOLEAN'=251
'CATALOGS'=252 'RAW'=252
'VIEWS'=253 'ROW'=253
'PRIMARY'=254 'NULL'=254
'KEY'=255 'DATETIME'=255
'PERIOD'=256 '='=256
'SYSTEM_TIME'=257 '>'=257
'STRING'=258 '<'=258
'ARRAY'=259 '!'=259
'MAP'=260 '~'=260
'CHAR'=261 '|'=261
'VARCHAR'=262 '&'=262
'BINARY'=263 '^'=263
'VARBINARY'=264 '.'=264
'BYTES'=265 '['=265
'DECIMAL'=266 ']'=266
'TINYINT'=267 '('=267
'SMALLINT'=268 ')'=268
'INT'=269 ','=269
'BIGINT'=270 ';'=270
'FLOAT'=271 '@'=271
'DOUBLE'=272 '\''=272
'DATE'=273 '"'=273
'TIME'=274 '`'=274
'TIMESTAMP'=275 ':'=275
'MULTISET'=276 '*'=276
'BOOLEAN'=277 '_'=277
'RAW'=278 '-'=278
'ROW'=279 '+'=279
'NULL'=280 '%'=280
'DATETIME'=281 '||'=281
'='=282 '--'=282
'>'=283 '/'=283
'<'=284
'!'=285
'~'=286
'|'=287
'&'=288
'^'=289
'.'=290
'['=291
']'=292
'('=293
')'=294
','=295
';'=296
'@'=297
'\''=298
'"'=299
'`'=300
':'=301
'*'=302
'_'=303
'-'=304
'+'=305
'%'=306
'||'=307
'--'=308
'/'=309

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -116,205 +116,179 @@ TRAILING=115
IF=116 IF=116
POSITION=117 POSITION=117
EXTRACT=118 EXTRACT=118
EQ=119 MINUS=119
NSEQ=120 DIV=120
NEQ=121 PERCENTLIT=121
NEQJ=122 BUCKET=122
LT=123 OUT=123
LTE=124 OF=124
GT=125 SORT=125
GTE=126 CLUSTER=126
PLUS=127 DISTRIBUTE=127
MINUS=128 OVERWRITE=128
ASTERISK=129 TRANSFORM=129
SLASH=130 REDUCE=130
PERCENT=131 USING=131
DIV=132 SERDE=132
TILDE=133 SERDEPROPERTIES=133
AMPERSAND=134 RECORDREADER=134
PIPE=135 RECORDWRITER=135
CONCAT_PIPE=136 DELIMITED=136
HAT=137 FIELDS=137
PERCENTLIT=138 TERMINATED=138
BUCKET=139 COLLECTION=139
OUT=140 ITEMS=140
OF=141 KEYS=141
SORT=142 ESCAPED=142
CLUSTER=143 LINES=143
DISTRIBUTE=144 SEPARATED=144
OVERWRITE=145 FUNCTION=145
TRANSFORM=146 EXTENDED=146
REDUCE=147 REFRESH=147
USING=148 CLEAR=148
SERDE=149 CACHE=149
SERDEPROPERTIES=150 UNCACHE=150
RECORDREADER=151 LAZY=151
RECORDWRITER=152 FORMATTED=152
DELIMITED=153 GLOBAL=153
FIELDS=154 TEMPORARY=154
TERMINATED=155 OPTIONS=155
COLLECTION=156 UNSET=156
ITEMS=157 TBLPROPERTIES=157
KEYS=158 DBPROPERTIES=158
ESCAPED=159 BUCKETS=159
LINES=160 SKEWED=160
SEPARATED=161 STORED=161
FUNCTION=162 DIRECTORIES=162
EXTENDED=163 LOCATION=163
REFRESH=164 EXCHANGE=164
CLEAR=165 ARCHIVE=165
CACHE=166 UNARCHIVE=166
UNCACHE=167 FILEFORMAT=167
LAZY=168 TOUCH=168
FORMATTED=169 COMPACT=169
GLOBAL=170 CONCATENATE=170
TEMPORARY=171 CHANGE=171
OPTIONS=172 CASCADE=172
UNSET=173 CONSTRAINT=173
TBLPROPERTIES=174 RESTRICT=174
DBPROPERTIES=175 CLUSTERED=175
BUCKETS=176 SORTED=176
SKEWED=177 PURGE=177
STORED=178 INPUTFORMAT=178
DIRECTORIES=179 OUTPUTFORMAT=179
LOCATION=180 DATABASE=180
EXCHANGE=181 DATABASES=181
ARCHIVE=182 DFS=182
UNARCHIVE=183 TRUNCATE=183
FILEFORMAT=184 ANALYZE=184
TOUCH=185 COMPUTE=185
COMPACT=186 LIST=186
CONCATENATE=187 STATISTICS=187
CHANGE=188 PARTITIONED=188
CASCADE=189 EXTERNAL=189
CONSTRAINT=190 DEFINED=190
RESTRICT=191 REVOKE=191
CLUSTERED=192 GRANT=192
SORTED=193 LOCK=193
PURGE=194 UNLOCK=194
INPUTFORMAT=195 MSCK=195
OUTPUTFORMAT=196 REPAIR=196
DATABASE=197 RECOVER=197
DATABASES=198 EXPORT=198
DFS=199 IMPORT=199
TRUNCATE=200 LOAD=200
ANALYZE=201 ROLE=201
COMPUTE=202 ROLES=202
LIST=203 COMPACTIONS=203
STATISTICS=204 PRINCIPALS=204
PARTITIONED=205 TRANSACTIONS=205
EXTERNAL=206 INDEX=206
DEFINED=207 INDEXES=207
REVOKE=208 LOCKS=208
GRANT=209 OPTION=209
LOCK=210 ANTI=210
UNLOCK=211 LOCAL=211
MSCK=212 INPATH=212
REPAIR=213 WATERMARK=213
RECOVER=214 UNNEST=214
EXPORT=215 MATCH=215
IMPORT=216 NEXT=216
LOAD=217 WITHIN=217
ROLE=218 WS=218
ROLES=219 SYSTEM=219
COMPACTIONS=220 INCLUDING=220
PRINCIPALS=221 EXCLUDING=221
TRANSACTIONS=222 CONSTRAINTS=222
INDEX=223 GENERATED=223
INDEXES=224 CATALOG=224
LOCKS=225 LANGUAGE=225
OPTION=226 CATALOGS=226
ANTI=227 VIEWS=227
LOCAL=228 PRIMARY=228
INPATH=229 KEY=229
WATERMARK=230 PERIOD=230
UNNEST=231 SYSTEM_TIME=231
MATCH_RECOGNIZE=232 STRING=232
MEASURES=233 ARRAY=233
ONE=234 MAP=234
PER=235 CHAR=235
MATCH=236 VARCHAR=236
SKIP1=237 BINARY=237
NEXT=238 VARBINARY=238
PAST=239 BYTES=239
PATTERN=240 DECIMAL=240
WITHIN=241 TINYINT=241
DEFINE=242 SMALLINT=242
WS=243 INT=243
SYSTEM=244 BIGINT=244
INCLUDING=245 FLOAT=245
EXCLUDING=246 DOUBLE=246
CONSTRAINTS=247 DATE=247
OVERWRITING=248 TIME=248
GENERATED=249 TIMESTAMP=249
CATALOG=250 MULTISET=250
LANGUAGE=251 BOOLEAN=251
CATALOGS=252 RAW=252
VIEWS=253 ROW=253
PRIMARY=254 NULL=254
KEY=255 DATETIME=255
PERIOD=256 EQUAL_SYMBOL=256
SYSTEM_TIME=257 GREATER_SYMBOL=257
STRING=258 LESS_SYMBOL=258
ARRAY=259 EXCLAMATION_SYMBOL=259
MAP=260 BIT_NOT_OP=260
CHAR=261 BIT_OR_OP=261
VARCHAR=262 BIT_AND_OP=262
BINARY=263 BIT_XOR_OP=263
VARBINARY=264 DOT=264
BYTES=265 LS_BRACKET=265
DECIMAL=266 RS_BRACKET=266
TINYINT=267 LR_BRACKET=267
SMALLINT=268 RR_BRACKET=268
INT=269 COMMA=269
BIGINT=270 SEMICOLON=270
FLOAT=271 AT_SIGN=271
DOUBLE=272 SINGLE_QUOTE_SYMB=272
DATE=273 DOUBLE_QUOTE_SYMB=273
TIME=274 REVERSE_QUOTE_SYMB=274
TIMESTAMP=275 COLON_SYMB=275
MULTISET=276 ASTERISK_SIGN=276
BOOLEAN=277 UNDERLINE_SIGN=277
RAW=278 HYPNEN_SIGN=278
ROW=279 ADD_SIGN=279
NULL=280 PENCENT_SIGN=280
DATETIME=281 DOUBLE_VERTICAL_SIGN=281
EQUAL_SYMBOL=282 DOUBLE_HYPNEN_SIGN=282
GREATER_SYMBOL=283 SLASH_SIGN=283
LESS_SYMBOL=284 DOT_ID=284
EXCLAMATION_SYMBOL=285 PLUS_DOT_ID=285
BIT_NOT_OP=286 STRING_LITERAL=286
BIT_OR_OP=287 DIG_LITERAL=287
BIT_AND_OP=288 REAL_LITERAL=288
BIT_XOR_OP=289 BIT_STRING=289
DOT=290 ID_LITERAL=290
LS_BRACKET=291 PLUS_ID_LITERAL=291
RS_BRACKET=292
LR_BRACKET=293
RR_BRACKET=294
COMMA=295
SEMICOLON=296
AT_SIGN=297
SINGLE_QUOTE_SYMB=298
DOUBLE_QUOTE_SYMB=299
REVERSE_QUOTE_SYMB=300
COLON_SYMB=301
ASTERISK_SIGN=302
UNDERLINE_SIGN=303
HYPNEN_SIGN=304
ADD_SIGN=305
PENCENT_SIGN=306
DOUBLE_VERTICAL_SIGN=307
DOUBLE_HYPNEN_SIGN=308
SLASH_SIGN=309
DOT_ID=310
PLUS_DOT_ID=311
STRING_LITERAL=312
DIG_LITERAL=313
REAL_LITERAL=314
BIT_STRING=315
ID_LITERAL=316
PLUS_ID_LITERAL=317
'SELECT'=4 'SELECT'=4
'FROM'=5 'FROM'=5
'ADD'=6 'ADD'=6
@ -430,194 +404,168 @@ PLUS_ID_LITERAL=317
'IF'=116 'IF'=116
'POSITION'=117 'POSITION'=117
'EXTRACT'=118 'EXTRACT'=118
'EQ'=119 'MINUS'=119
'NSEQ'=120 'DIV'=120
'NEQ'=121 'PERCENTLIT'=121
'NEQJ'=122 'BUCKET'=122
'LT'=123 'OUT'=123
'LTE'=124 'OF'=124
'GT'=125 'SORT'=125
'GTE'=126 'CLUSTER'=126
'PLUS'=127 'DISTRIBUTE'=127
'MINUS'=128 'OVERWRITE'=128
'ASTERISK'=129 'TRANSFORM'=129
'SLASH'=130 'REDUCE'=130
'PERCENT'=131 'USING'=131
'DIV'=132 'SERDE'=132
'TILDE'=133 'SERDEPROPERTIES'=133
'AMPERSAND'=134 'RECORDREADER'=134
'PIPE'=135 'RECORDWRITER'=135
'CONCAT_PIPE'=136 'DELIMITED'=136
'HAT'=137 'FIELDS'=137
'PERCENTLIT'=138 'TERMINATED'=138
'BUCKET'=139 'COLLECTION'=139
'OUT'=140 'ITEMS'=140
'OF'=141 'KEYS'=141
'SORT'=142 'ESCAPED'=142
'CLUSTER'=143 'LINES'=143
'DISTRIBUTE'=144 'SEPARATED'=144
'OVERWRITE'=145 'FUNCTION'=145
'TRANSFORM'=146 'EXTENDED'=146
'REDUCE'=147 'REFRESH'=147
'USING'=148 'CLEAR'=148
'SERDE'=149 'CACHE'=149
'SERDEPROPERTIES'=150 'UNCACHE'=150
'RECORDREADER'=151 'LAZY'=151
'RECORDWRITER'=152 'FORMATTED'=152
'DELIMITED'=153 'GLOBAL'=153
'FIELDS'=154 'TEMPORARY'=154
'TERMINATED'=155 'OPTIONS'=155
'COLLECTION'=156 'UNSET'=156
'ITEMS'=157 'TBLPROPERTIES'=157
'KEYS'=158 'DBPROPERTIES'=158
'ESCAPED'=159 'BUCKETS'=159
'LINES'=160 'SKEWED'=160
'SEPARATED'=161 'STORED'=161
'FUNCTION'=162 'DIRECTORIES'=162
'EXTENDED'=163 'LOCATION'=163
'REFRESH'=164 'EXCHANGE'=164
'CLEAR'=165 'ARCHIVE'=165
'CACHE'=166 'UNARCHIVE'=166
'UNCACHE'=167 'FILEFORMAT'=167
'LAZY'=168 'TOUCH'=168
'FORMATTED'=169 'COMPACT'=169
'GLOBAL'=170 'CONCATENATE'=170
'TEMPORARY'=171 'CHANGE'=171
'OPTIONS'=172 'CASCADE'=172
'UNSET'=173 'CONSTRAINT'=173
'TBLPROPERTIES'=174 'RESTRICT'=174
'DBPROPERTIES'=175 'CLUSTERED'=175
'BUCKETS'=176 'SORTED'=176
'SKEWED'=177 'PURGE'=177
'STORED'=178 'INPUTFORMAT'=178
'DIRECTORIES'=179 'OUTPUTFORMAT'=179
'LOCATION'=180 'DATABASE'=180
'EXCHANGE'=181 'DATABASES'=181
'ARCHIVE'=182 'DFS'=182
'UNARCHIVE'=183 'TRUNCATE'=183
'FILEFORMAT'=184 'ANALYZE'=184
'TOUCH'=185 'COMPUTE'=185
'COMPACT'=186 'LIST'=186
'CONCATENATE'=187 'STATISTICS'=187
'CHANGE'=188 'PARTITIONED'=188
'CASCADE'=189 'EXTERNAL'=189
'CONSTRAINT'=190 'DEFINED'=190
'RESTRICT'=191 'REVOKE'=191
'CLUSTERED'=192 'GRANT'=192
'SORTED'=193 'LOCK'=193
'PURGE'=194 'UNLOCK'=194
'INPUTFORMAT'=195 'MSCK'=195
'OUTPUTFORMAT'=196 'REPAIR'=196
'DATABASE'=197 'RECOVER'=197
'DATABASES'=198 'EXPORT'=198
'DFS'=199 'IMPORT'=199
'TRUNCATE'=200 'LOAD'=200
'ANALYZE'=201 'ROLE'=201
'COMPUTE'=202 'ROLES'=202
'LIST'=203 'COMPACTIONS'=203
'STATISTICS'=204 'PRINCIPALS'=204
'PARTITIONED'=205 'TRANSACTIONS'=205
'EXTERNAL'=206 'INDEX'=206
'DEFINED'=207 'INDEXES'=207
'REVOKE'=208 'LOCKS'=208
'GRANT'=209 'OPTION'=209
'LOCK'=210 'ANTI'=210
'UNLOCK'=211 'LOCAL'=211
'MSCK'=212 'INPATH'=212
'REPAIR'=213 'WATERMARK'=213
'RECOVER'=214 'UNNEST'=214
'EXPORT'=215 'MATCH'=215
'IMPORT'=216 'NEXT'=216
'LOAD'=217 'WITHIN'=217
'ROLE'=218 'WS'=218
'ROLES'=219 'SYSTEM'=219
'COMPACTIONS'=220 'INCLUDING'=220
'PRINCIPALS'=221 'EXCLUDING'=221
'TRANSACTIONS'=222 'CONSTRAINTS'=222
'INDEX'=223 'GENERATED'=223
'INDEXES'=224 'CATALOG'=224
'LOCKS'=225 'LANGUAGE'=225
'OPTION'=226 'CATALOGS'=226
'ANTI'=227 'VIEWS'=227
'LOCAL'=228 'PRIMARY'=228
'INPATH'=229 'KEY'=229
'WATERMARK'=230 'PERIOD'=230
'UNNEST'=231 'SYSTEM_TIME'=231
'MATCH_RECOGNIZE'=232 'STRING'=232
'MEASURES'=233 'ARRAY'=233
'ONE'=234 'MAP'=234
'PER'=235 'CHAR'=235
'MATCH'=236 'VARCHAR'=236
'SKIP1'=237 'BINARY'=237
'NEXT'=238 'VARBINARY'=238
'PAST'=239 'BYTES'=239
'PATTERN'=240 'DECIMAL'=240
'WITHIN'=241 'TINYINT'=241
'DEFINE'=242 'SMALLINT'=242
'WS'=243 'INT'=243
'SYSTEM'=244 'BIGINT'=244
'INCLUDING'=245 'FLOAT'=245
'EXCLUDING'=246 'DOUBLE'=246
'CONSTRAINTS'=247 'DATE'=247
'OVERWRITING'=248 'TIME'=248
'GENERATED'=249 'TIMESTAMP'=249
'CATALOG'=250 'MULTISET'=250
'LANGUAGE'=251 'BOOLEAN'=251
'CATALOGS'=252 'RAW'=252
'VIEWS'=253 'ROW'=253
'PRIMARY'=254 'NULL'=254
'KEY'=255 'DATETIME'=255
'PERIOD'=256 '='=256
'SYSTEM_TIME'=257 '>'=257
'STRING'=258 '<'=258
'ARRAY'=259 '!'=259
'MAP'=260 '~'=260
'CHAR'=261 '|'=261
'VARCHAR'=262 '&'=262
'BINARY'=263 '^'=263
'VARBINARY'=264 '.'=264
'BYTES'=265 '['=265
'DECIMAL'=266 ']'=266
'TINYINT'=267 '('=267
'SMALLINT'=268 ')'=268
'INT'=269 ','=269
'BIGINT'=270 ';'=270
'FLOAT'=271 '@'=271
'DOUBLE'=272 '\''=272
'DATE'=273 '"'=273
'TIME'=274 '`'=274
'TIMESTAMP'=275 ':'=275
'MULTISET'=276 '*'=276
'BOOLEAN'=277 '_'=277
'RAW'=278 '-'=278
'ROW'=279 '+'=279
'NULL'=280 '%'=280
'DATETIME'=281 '||'=281
'='=282 '--'=282
'>'=283 '/'=283
'<'=284
'!'=285
'~'=286
'|'=287
'&'=288
'^'=289
'.'=290
'['=291
']'=292
'('=293
')'=294
','=295
';'=296
'@'=297
'\''=298
'"'=299
'`'=300
':'=301
'*'=302
'_'=303
'-'=304
'+'=305
'%'=306
'||'=307
'--'=308
'/'=309

View File

@ -1010,6 +1010,24 @@ FlinkSqlParserListener.prototype.exitQuotedIdentifierAlternative = function(ctx)
}; };
// Enter a parse tree produced by FlinkSqlParser#ansiNonReservedKeywords.
FlinkSqlParserListener.prototype.enterAnsiNonReservedKeywords = function(ctx) {
};
// Exit a parse tree produced by FlinkSqlParser#ansiNonReservedKeywords.
FlinkSqlParserListener.prototype.exitAnsiNonReservedKeywords = function(ctx) {
};
// Enter a parse tree produced by FlinkSqlParser#nonReservedKeywords.
FlinkSqlParserListener.prototype.enterNonReservedKeywords = function(ctx) {
};
// Exit a parse tree produced by FlinkSqlParser#nonReservedKeywords.
FlinkSqlParserListener.prototype.exitNonReservedKeywords = function(ctx) {
};
// Enter a parse tree produced by FlinkSqlParser#unquotedIdentifier. // Enter a parse tree produced by FlinkSqlParser#unquotedIdentifier.
FlinkSqlParserListener.prototype.enterUnquotedIdentifier = function(ctx) { FlinkSqlParserListener.prototype.enterUnquotedIdentifier = function(ctx) {
}; };
@ -1226,5 +1244,32 @@ FlinkSqlParserListener.prototype.exitSetQuantifier = function(ctx) {
}; };
// Enter a parse tree produced by FlinkSqlParser#ansiNonReserved.
FlinkSqlParserListener.prototype.enterAnsiNonReserved = function(ctx) {
};
// Exit a parse tree produced by FlinkSqlParser#ansiNonReserved.
FlinkSqlParserListener.prototype.exitAnsiNonReserved = function(ctx) {
};
// Enter a parse tree produced by FlinkSqlParser#strictNonReserved.
FlinkSqlParserListener.prototype.enterStrictNonReserved = function(ctx) {
};
// Exit a parse tree produced by FlinkSqlParser#strictNonReserved.
FlinkSqlParserListener.prototype.exitStrictNonReserved = function(ctx) {
};
// Enter a parse tree produced by FlinkSqlParser#nonReserved.
FlinkSqlParserListener.prototype.enterNonReserved = function(ctx) {
};
// Exit a parse tree produced by FlinkSqlParser#nonReserved.
FlinkSqlParserListener.prototype.exitNonReserved = function(ctx) {
};
exports.FlinkSqlParserListener = FlinkSqlParserListener; exports.FlinkSqlParserListener = FlinkSqlParserListener;

View File

@ -678,6 +678,18 @@ FlinkSqlParserVisitor.prototype.visitQuotedIdentifierAlternative = function(ctx)
}; };
// Visit a parse tree produced by FlinkSqlParser#ansiNonReservedKeywords.
FlinkSqlParserVisitor.prototype.visitAnsiNonReservedKeywords = function(ctx) {
return this.visitChildren(ctx);
};
// Visit a parse tree produced by FlinkSqlParser#nonReservedKeywords.
FlinkSqlParserVisitor.prototype.visitNonReservedKeywords = function(ctx) {
return this.visitChildren(ctx);
};
// Visit a parse tree produced by FlinkSqlParser#unquotedIdentifier. // Visit a parse tree produced by FlinkSqlParser#unquotedIdentifier.
FlinkSqlParserVisitor.prototype.visitUnquotedIdentifier = function(ctx) { FlinkSqlParserVisitor.prototype.visitUnquotedIdentifier = function(ctx) {
return this.visitChildren(ctx); return this.visitChildren(ctx);
@ -822,5 +834,23 @@ FlinkSqlParserVisitor.prototype.visitSetQuantifier = function(ctx) {
}; };
// Visit a parse tree produced by FlinkSqlParser#ansiNonReserved.
FlinkSqlParserVisitor.prototype.visitAnsiNonReserved = function(ctx) {
return this.visitChildren(ctx);
};
// Visit a parse tree produced by FlinkSqlParser#strictNonReserved.
FlinkSqlParserVisitor.prototype.visitStrictNonReserved = function(ctx) {
return this.visitChildren(ctx);
};
// Visit a parse tree produced by FlinkSqlParser#nonReserved.
FlinkSqlParserVisitor.prototype.visitNonReserved = function(ctx) {
return this.visitChildren(ctx);
};
exports.FlinkSqlParserVisitor = FlinkSqlParserVisitor; exports.FlinkSqlParserVisitor = FlinkSqlParserVisitor;

View File

@ -173,7 +173,7 @@ describe('FlinkSQL Syntax Tests', () => {
expect(result.length).toBe(0); expect(result.length).toBe(0);
}); });
// todo 字段中包含特殊字符 如$符号 内容匹配不准确 自定义字段与与定义的词法规则重复 也会匹配不准确 // todo 字段中包含特殊字符 如$符号 内容匹配不准确
// test('Test complex sql Statement one', () => { // test('Test complex sql Statement one', () => {
// const sql = sqlMockData.sqlStrOne; // const sql = sqlMockData.sqlStrOne;
// const result = parser.validate(sql); // const result = parser.validate(sql);