Merge pull request #141 from HaydenOrz/fix/flink_sql_grammar

Fix/flink sql grammar
This commit is contained in:
mumiao 2023-08-29 10:54:38 +08:00 committed by GitHub
commit 16dcaf29e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 5458 additions and 5386 deletions

View File

@ -227,6 +227,7 @@ KW_CHECK: 'CHECK';
KW_CLOB: 'CLOB'; KW_CLOB: 'CLOB';
KW_CLOSE: 'CLOSE'; KW_CLOSE: 'CLOSE';
KW_COALESCE: 'COALESCE'; KW_COALESCE: 'COALESCE';
KW_CONFIG: 'CONFIG';
KW_COLLATE: 'COLLATE'; KW_COLLATE: 'COLLATE';
KW_COLLECT: 'COLLECT'; KW_COLLECT: 'COLLECT';
KW_COLUMN: 'COLUMN'; KW_COLUMN: 'COLUMN';

View File

@ -97,6 +97,7 @@ dtAddStatement
| KW_ADD (KW_PYTHON_FILES | KW_PYTHON_REQUIREMENTS | KW_PYTHON_DEPENDENCIES | KW_PYTHON_JAR | KW_PYTHON_ARCHIVES) KW_WITH dtFilePath KW_RENAME uid | KW_ADD (KW_PYTHON_FILES | KW_PYTHON_REQUIREMENTS | KW_PYTHON_DEPENDENCIES | KW_PYTHON_JAR | KW_PYTHON_ARCHIVES) KW_WITH dtFilePath KW_RENAME uid
| KW_ADD KW_PYTHON_PARAMETER dtFilePath | KW_ADD KW_PYTHON_PARAMETER dtFilePath
| KW_ADD KW_ENGINE KW_FILE KW_WITH dtFilePath KW_RENAME uid KW_KEY uid | KW_ADD KW_ENGINE KW_FILE KW_WITH dtFilePath KW_RENAME uid KW_KEY uid
| KW_ADD KW_CONFIG KW_FILE KW_WITH dtFilePath KW_FOR uid KW_AS uid
; ;
dtFilePath dtFilePath
@ -1023,6 +1024,8 @@ reservedKeywordsUsedAsFuncName
| KW_POSITION | KW_POSITION
| KW_POWER | KW_POWER
| KW_QUARTER | KW_QUARTER
| KW_ROW
| KW_ROWS
| KW_RANK | KW_RANK
| KW_RIGHT | KW_RIGHT
| KW_SECOND | KW_SECOND

File diff suppressed because one or more lines are too long

View File

@ -207,207 +207,208 @@ KW_CHECK=206
KW_CLOB=207 KW_CLOB=207
KW_CLOSE=208 KW_CLOSE=208
KW_COALESCE=209 KW_COALESCE=209
KW_COLLATE=210 KW_CONFIG=210
KW_COLLECT=211 KW_COLLATE=211
KW_COLUMN=212 KW_COLLECT=212
KW_COMMIT=213 KW_COLUMN=213
KW_CONNECT=214 KW_COMMIT=214
KW_CONSTRAINT=215 KW_CONNECT=215
KW_CONTAINS=216 KW_CONSTRAINT=216
KW_CONVERT=217 KW_CONTAINS=217
KW_COUNT=218 KW_CONVERT=218
KW_CREATE=219 KW_COUNT=219
KW_CROSS=220 KW_CREATE=220
KW_CUBE=221 KW_CROSS=221
KW_CURRENT=222 KW_CUBE=222
KW_CURSOR=223 KW_CURRENT=223
KW_CYCLE=224 KW_CURSOR=224
KW_DATE=225 KW_CYCLE=225
KW_DATETIME=226 KW_DATE=226
KW_DAY=227 KW_DATETIME=227
KW_DEC=228 KW_DAY=228
KW_DECIMAL=229 KW_DEC=229
KW_DECLARE=230 KW_DECIMAL=230
KW_DEFAULT=231 KW_DECLARE=231
KW_DEFINE=232 KW_DEFAULT=232
KW_DELETE=233 KW_DEFINE=233
KW_DESCRIBE=234 KW_DELETE=234
KW_DISTINCT=235 KW_DESCRIBE=235
KW_DOUBLE=236 KW_DISTINCT=236
KW_DROP=237 KW_DOUBLE=237
KW_EACH=238 KW_DROP=238
KW_ELSE=239 KW_EACH=239
KW_END=240 KW_ELSE=240
KW_EQUALS=241 KW_END=241
KW_ESCAPE=242 KW_EQUALS=242
KW_EXCEPT=243 KW_ESCAPE=243
KW_EXECUTE=244 KW_EXCEPT=244
KW_EXISTS=245 KW_EXECUTE=245
KW_EXPLAIN=246 KW_EXISTS=246
KW_EXTERNAL=247 KW_EXPLAIN=247
KW_EXTRACT=248 KW_EXTERNAL=248
KW_FALSE=249 KW_EXTRACT=249
KW_FLOAT=250 KW_FALSE=250
KW_FOR=251 KW_FLOAT=251
KW_FROM=252 KW_FOR=252
KW_FULL=253 KW_FROM=253
KW_FUNCTION=254 KW_FULL=254
KW_GLOBAL=255 KW_FUNCTION=255
KW_GRANT=256 KW_GLOBAL=256
KW_GROUP=257 KW_GRANT=257
KW_GROUPING=258 KW_GROUP=258
KW_GROUPS=259 KW_GROUPING=259
KW_HAVING=260 KW_GROUPS=260
KW_HOUR=261 KW_HAVING=261
KW_IMPORT=262 KW_HOUR=262
KW_IN=263 KW_IMPORT=263
KW_INCLUDING=264 KW_IN=264
KW_INNER=265 KW_INCLUDING=265
KW_INOUT=266 KW_INNER=266
KW_INSERT=267 KW_INOUT=267
KW_INT=268 KW_INSERT=268
KW_INTEGER=269 KW_INT=269
KW_INTERSECT=270 KW_INTEGER=270
KW_INTERVAL=271 KW_INTERSECT=271
KW_INTO=272 KW_INTERVAL=272
KW_IS=273 KW_INTO=273
KW_JOIN=274 KW_IS=274
KW_LAG=275 KW_JOIN=275
KW_LANGUAGE=276 KW_LAG=276
KW_LATERAL=277 KW_LANGUAGE=277
KW_LEADING=278 KW_LATERAL=278
KW_LEFT=279 KW_LEADING=279
KW_LIKE=280 KW_LEFT=280
KW_LIMIT=281 KW_LIKE=281
KW_LOCAL=282 KW_LIMIT=282
KW_MATCH=283 KW_LOCAL=283
KW_MATCH_RECOGNIZE=284 KW_MATCH=284
KW_MEASURES=285 KW_MATCH_RECOGNIZE=285
KW_MERGE=286 KW_MEASURES=286
KW_METADATA=287 KW_MERGE=287
KW_MINUS=288 KW_METADATA=288
KW_MINUTE=289 KW_MINUS=289
KW_MODIFIES=290 KW_MINUTE=290
KW_MODULE=291 KW_MODIFIES=291
KW_MONTH=292 KW_MODULE=292
KW_MULTISET=293 KW_MONTH=293
KW_NATURAL=294 KW_MULTISET=294
KW_NEXT=295 KW_NATURAL=295
KW_NO=296 KW_NEXT=296
KW_NONE=297 KW_NO=297
KW_NOT=298 KW_NONE=298
KW_NULL=299 KW_NOT=299
KW_NUMERIC=300 KW_NULL=300
KW_OF=301 KW_NUMERIC=301
KW_OFFSET=302 KW_OF=302
KW_ON=303 KW_OFFSET=303
KW_ONE=304 KW_ON=304
KW_OR=305 KW_ONE=305
KW_ORDER=306 KW_OR=306
KW_OUT=307 KW_ORDER=307
KW_OUTER=308 KW_OUT=308
KW_OVER=309 KW_OUTER=309
KW_OVERLAY=310 KW_OVER=310
KW_PARTITION=311 KW_OVERLAY=311
KW_PATTERN=312 KW_PARTITION=312
KW_PER=313 KW_PATTERN=313
KW_PERCENT=314 KW_PER=314
KW_PERIOD=315 KW_PERCENT=315
KW_POSITION=316 KW_PERIOD=316
KW_POWER=317 KW_POSITION=317
KW_PRIMARY=318 KW_POWER=318
KW_RANGE=319 KW_PRIMARY=319
KW_RANK=320 KW_RANGE=320
KW_RESET=321 KW_RANK=321
KW_REVOKE=322 KW_RESET=322
KW_RIGHT=323 KW_REVOKE=323
KW_RLIKE=324 KW_RIGHT=324
KW_ROLLBACK=325 KW_RLIKE=325
KW_ROLLUP=326 KW_ROLLBACK=326
KW_ROW=327 KW_ROLLUP=327
KW_ROWS=328 KW_ROW=328
KW_SECOND=329 KW_ROWS=329
KW_SELECT=330 KW_SECOND=330
KW_SET=331 KW_SELECT=331
KW_SHOW=332 KW_SET=332
KW_SIMILAR=333 KW_SHOW=333
KW_SKIP=334 KW_SIMILAR=334
KW_SMALLINT=335 KW_SKIP=335
KW_START=336 KW_SMALLINT=336
KW_STATIC=337 KW_START=337
KW_SUBSTRING=338 KW_STATIC=338
KW_SUM=339 KW_SUBSTRING=339
KW_SYMMETRIC=340 KW_SUM=340
KW_SYSTEM=341 KW_SYMMETRIC=341
KW_SYSTEM_TIME=342 KW_SYSTEM=342
KW_SYSTEM_USER=343 KW_SYSTEM_TIME=343
KW_TABLE=344 KW_SYSTEM_USER=344
KW_TABLESAMPLE=345 KW_TABLE=345
KW_THEN=346 KW_TABLESAMPLE=346
KW_TIME=347 KW_THEN=347
KW_TIMESTAMP=348 KW_TIME=348
KW_TINYINT=349 KW_TIMESTAMP=349
KW_TO=350 KW_TINYINT=350
KW_TRAILING=351 KW_TO=351
KW_TRUE=352 KW_TRAILING=352
KW_TRUNCATE=353 KW_TRUE=353
KW_UNION=354 KW_TRUNCATE=354
KW_UNIQUE=355 KW_UNION=355
KW_UNKNOWN=356 KW_UNIQUE=356
KW_UNNEST=357 KW_UNKNOWN=357
KW_UPPER=358 KW_UNNEST=358
KW_UPSERT=359 KW_UPPER=359
KW_USER=360 KW_UPSERT=360
KW_USING=361 KW_USER=361
KW_VALUE=362 KW_USING=362
KW_VALUES=363 KW_VALUE=363
KW_VARBINARY=364 KW_VALUES=364
KW_VARCHAR=365 KW_VARBINARY=365
KW_WHEN=366 KW_VARCHAR=366
KW_WHERE=367 KW_WHEN=367
KW_WINDOW=368 KW_WHERE=368
KW_WITH=369 KW_WINDOW=369
KW_WITHIN=370 KW_WITH=370
KW_WITHOUT=371 KW_WITHIN=371
KW_YEAR=372 KW_WITHOUT=372
EQUAL_SYMBOL=373 KW_YEAR=373
GREATER_SYMBOL=374 EQUAL_SYMBOL=374
LESS_SYMBOL=375 GREATER_SYMBOL=375
EXCLAMATION_SYMBOL=376 LESS_SYMBOL=376
BIT_NOT_OP=377 EXCLAMATION_SYMBOL=377
BIT_OR_OP=378 BIT_NOT_OP=378
BIT_AND_OP=379 BIT_OR_OP=379
BIT_XOR_OP=380 BIT_AND_OP=380
DOT=381 BIT_XOR_OP=381
LS_BRACKET=382 DOT=382
RS_BRACKET=383 LS_BRACKET=383
LR_BRACKET=384 RS_BRACKET=384
RR_BRACKET=385 LR_BRACKET=385
LB_BRACKET=386 RR_BRACKET=386
RB_BRACKET=387 LB_BRACKET=387
COMMA=388 RB_BRACKET=388
SEMICOLON=389 COMMA=389
AT_SIGN=390 SEMICOLON=390
SINGLE_QUOTE_SYMB=391 AT_SIGN=391
DOUBLE_QUOTE_SYMB=392 SINGLE_QUOTE_SYMB=392
REVERSE_QUOTE_SYMB=393 DOUBLE_QUOTE_SYMB=393
COLON_SYMB=394 REVERSE_QUOTE_SYMB=394
ASTERISK_SIGN=395 COLON_SYMB=395
UNDERLINE_SIGN=396 ASTERISK_SIGN=396
HYPNEN_SIGN=397 UNDERLINE_SIGN=397
ADD_SIGN=398 HYPNEN_SIGN=398
PENCENT_SIGN=399 ADD_SIGN=399
DOUBLE_VERTICAL_SIGN=400 PENCENT_SIGN=400
DOUBLE_HYPNEN_SIGN=401 DOUBLE_VERTICAL_SIGN=401
SLASH_SIGN=402 DOUBLE_HYPNEN_SIGN=402
QUESTION_MARK_SIGN=403 SLASH_SIGN=403
DOUBLE_RIGHT_ARROW=404 QUESTION_MARK_SIGN=404
STRING_LITERAL=405 DOUBLE_RIGHT_ARROW=405
DIG_LITERAL=406 STRING_LITERAL=406
REAL_LITERAL=407 DIG_LITERAL=407
BIT_STRING=408 REAL_LITERAL=408
ID_LITERAL=409 BIT_STRING=409
SLASH_TEXT=410 ID_LITERAL=410
SLASH_TEXT=411
'ADD'=4 'ADD'=4
'ADMIN'=5 'ADMIN'=5
'AFTER'=6 'AFTER'=6
@ -614,198 +615,199 @@ SLASH_TEXT=410
'CLOB'=207 'CLOB'=207
'CLOSE'=208 'CLOSE'=208
'COALESCE'=209 'COALESCE'=209
'COLLATE'=210 'CONFIG'=210
'COLLECT'=211 'COLLATE'=211
'COLUMN'=212 'COLLECT'=212
'COMMIT'=213 'COLUMN'=213
'CONNECT'=214 'COMMIT'=214
'CONSTRAINT'=215 'CONNECT'=215
'CONTAINS'=216 'CONSTRAINT'=216
'CONVERT'=217 'CONTAINS'=217
'COUNT'=218 'CONVERT'=218
'CREATE'=219 'COUNT'=219
'CROSS'=220 'CREATE'=220
'CUBE'=221 'CROSS'=221
'CURRENT'=222 'CUBE'=222
'CURSOR'=223 'CURRENT'=223
'CYCLE'=224 'CURSOR'=224
'DATE'=225 'CYCLE'=225
'DATETIME'=226 'DATE'=226
'DAY'=227 'DATETIME'=227
'DEC'=228 'DAY'=228
'DECIMAL'=229 'DEC'=229
'DECLARE'=230 'DECIMAL'=230
'DEFAULT'=231 'DECLARE'=231
'DEFINE'=232 'DEFAULT'=232
'DELETE'=233 'DEFINE'=233
'DESCRIBE'=234 'DELETE'=234
'DISTINCT'=235 'DESCRIBE'=235
'DOUBLE'=236 'DISTINCT'=236
'DROP'=237 'DOUBLE'=237
'EACH'=238 'DROP'=238
'ELSE'=239 'EACH'=239
'END'=240 'ELSE'=240
'EQUALS'=241 'END'=241
'ESCAPE'=242 'EQUALS'=242
'EXCEPT'=243 'ESCAPE'=243
'EXECUTE'=244 'EXCEPT'=244
'EXISTS'=245 'EXECUTE'=245
'EXPLAIN'=246 'EXISTS'=246
'EXTERNAL'=247 'EXPLAIN'=247
'EXTRACT'=248 'EXTERNAL'=248
'FALSE'=249 'EXTRACT'=249
'FLOAT'=250 'FALSE'=250
'FOR'=251 'FLOAT'=251
'FROM'=252 'FOR'=252
'FULL'=253 'FROM'=253
'FUNCTION'=254 'FULL'=254
'GLOBAL'=255 'FUNCTION'=255
'GRANT'=256 'GLOBAL'=256
'GROUP'=257 'GRANT'=257
'GROUPING'=258 'GROUP'=258
'GROUPS'=259 'GROUPING'=259
'HAVING'=260 'GROUPS'=260
'HOUR'=261 'HAVING'=261
'IMPORT'=262 'HOUR'=262
'IN'=263 'IMPORT'=263
'INCLUDING'=264 'IN'=264
'INNER'=265 'INCLUDING'=265
'INOUT'=266 'INNER'=266
'INSERT'=267 'INOUT'=267
'INT'=268 'INSERT'=268
'INTEGER'=269 'INT'=269
'INTERSECT'=270 'INTEGER'=270
'INTERVAL'=271 'INTERSECT'=271
'INTO'=272 'INTERVAL'=272
'IS'=273 'INTO'=273
'JOIN'=274 'IS'=274
'LAG'=275 'JOIN'=275
'LANGUAGE'=276 'LAG'=276
'LATERAL'=277 'LANGUAGE'=277
'LEADING'=278 'LATERAL'=278
'LEFT'=279 'LEADING'=279
'LIKE'=280 'LEFT'=280
'LIMIT'=281 'LIKE'=281
'LOCAL'=282 'LIMIT'=282
'MATCH'=283 'LOCAL'=283
'MATCH_RECOGNIZE'=284 'MATCH'=284
'MEASURES'=285 'MATCH_RECOGNIZE'=285
'MERGE'=286 'MEASURES'=286
'METADATA'=287 'MERGE'=287
'MINUS'=288 'METADATA'=288
'MINUTE'=289 'MINUS'=289
'MODIFIES'=290 'MINUTE'=290
'MODULE'=291 'MODIFIES'=291
'MONTH'=292 'MODULE'=292
'MULTISET'=293 'MONTH'=293
'NATURAL'=294 'MULTISET'=294
'NEXT'=295 'NATURAL'=295
'NO'=296 'NEXT'=296
'NONE'=297 'NO'=297
'NOT'=298 'NONE'=298
'NULL'=299 'NOT'=299
'NUMERIC'=300 'NULL'=300
'OF'=301 'NUMERIC'=301
'OFFSET'=302 'OF'=302
'ON'=303 'OFFSET'=303
'ONE'=304 'ON'=304
'OR'=305 'ONE'=305
'ORDER'=306 'OR'=306
'OUT'=307 'ORDER'=307
'OUTER'=308 'OUT'=308
'OVER'=309 'OUTER'=309
'OVERLAY'=310 'OVER'=310
'PARTITION'=311 'OVERLAY'=311
'PATTERN'=312 'PARTITION'=312
'PER'=313 'PATTERN'=313
'PERCENT'=314 'PER'=314
'PERIOD'=315 'PERCENT'=315
'POSITION'=316 'PERIOD'=316
'POWER'=317 'POSITION'=317
'PRIMARY'=318 'POWER'=318
'RANGE'=319 'PRIMARY'=319
'RANK'=320 'RANGE'=320
'RESET'=321 'RANK'=321
'REVOKE'=322 'RESET'=322
'RIGHT'=323 'REVOKE'=323
'RLIKE'=324 'RIGHT'=324
'ROLLBACK'=325 'RLIKE'=325
'ROLLUP'=326 'ROLLBACK'=326
'ROW'=327 'ROLLUP'=327
'ROWS'=328 'ROW'=328
'SECOND'=329 'ROWS'=329
'SELECT'=330 'SECOND'=330
'SET'=331 'SELECT'=331
'SHOW'=332 'SET'=332
'SIMILAR'=333 'SHOW'=333
'SKIP'=334 'SIMILAR'=334
'SMALLINT'=335 'SKIP'=335
'START'=336 'SMALLINT'=336
'STATIC'=337 'START'=337
'SUBSTRING'=338 'STATIC'=338
'SUM'=339 'SUBSTRING'=339
'SYMMETRIC'=340 'SUM'=340
'SYSTEM'=341 'SYMMETRIC'=341
'SYSTEM_TIME'=342 'SYSTEM'=342
'SYSTEM_USER'=343 'SYSTEM_TIME'=343
'TABLE'=344 'SYSTEM_USER'=344
'TABLESAMPLE'=345 'TABLE'=345
'THEN'=346 'TABLESAMPLE'=346
'TIME'=347 'THEN'=347
'TIMESTAMP'=348 'TIME'=348
'TINYINT'=349 'TIMESTAMP'=349
'TO'=350 'TINYINT'=350
'TRAILING'=351 'TO'=351
'TRUE'=352 'TRAILING'=352
'TRUNCATE'=353 'TRUE'=353
'UNION'=354 'TRUNCATE'=354
'UNIQUE'=355 'UNION'=355
'UNKNOWN'=356 'UNIQUE'=356
'UNNEST'=357 'UNKNOWN'=357
'UPPER'=358 'UNNEST'=358
'UPSERT'=359 'UPPER'=359
'USER'=360 'UPSERT'=360
'USING'=361 'USER'=361
'VALUE'=362 'USING'=362
'VALUES'=363 'VALUE'=363
'VARBINARY'=364 'VALUES'=364
'VARCHAR'=365 'VARBINARY'=365
'WHEN'=366 'VARCHAR'=366
'WHERE'=367 'WHEN'=367
'WINDOW'=368 'WHERE'=368
'WITH'=369 'WINDOW'=369
'WITHIN'=370 'WITH'=370
'WITHOUT'=371 'WITHIN'=371
'YEAR'=372 'WITHOUT'=372
'='=373 'YEAR'=373
'>'=374 '='=374
'<'=375 '>'=375
'!'=376 '<'=376
'~'=377 '!'=377
'|'=378 '~'=378
'&'=379 '|'=379
'^'=380 '&'=380
'.'=381 '^'=381
'['=382 '.'=382
']'=383 '['=383
'('=384 ']'=384
')'=385 '('=385
'{'=386 ')'=386
'}'=387 '{'=387
','=388 '}'=388
';'=389 ','=389
'@'=390 ';'=390
'\''=391 '@'=391
'"'=392 '\''=392
'`'=393 '"'=393
':'=394 '`'=394
'*'=395 ':'=395
'_'=396 '*'=396
'-'=397 '_'=397
'+'=398 '-'=398
'%'=399 '+'=399
'||'=400 '%'=400
'--'=401 '||'=401
'/'=402 '--'=402
'?'=403 '/'=403
'=>'=404 '?'=404
'=>'=405

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -207,207 +207,208 @@ KW_CHECK=206
KW_CLOB=207 KW_CLOB=207
KW_CLOSE=208 KW_CLOSE=208
KW_COALESCE=209 KW_COALESCE=209
KW_COLLATE=210 KW_CONFIG=210
KW_COLLECT=211 KW_COLLATE=211
KW_COLUMN=212 KW_COLLECT=212
KW_COMMIT=213 KW_COLUMN=213
KW_CONNECT=214 KW_COMMIT=214
KW_CONSTRAINT=215 KW_CONNECT=215
KW_CONTAINS=216 KW_CONSTRAINT=216
KW_CONVERT=217 KW_CONTAINS=217
KW_COUNT=218 KW_CONVERT=218
KW_CREATE=219 KW_COUNT=219
KW_CROSS=220 KW_CREATE=220
KW_CUBE=221 KW_CROSS=221
KW_CURRENT=222 KW_CUBE=222
KW_CURSOR=223 KW_CURRENT=223
KW_CYCLE=224 KW_CURSOR=224
KW_DATE=225 KW_CYCLE=225
KW_DATETIME=226 KW_DATE=226
KW_DAY=227 KW_DATETIME=227
KW_DEC=228 KW_DAY=228
KW_DECIMAL=229 KW_DEC=229
KW_DECLARE=230 KW_DECIMAL=230
KW_DEFAULT=231 KW_DECLARE=231
KW_DEFINE=232 KW_DEFAULT=232
KW_DELETE=233 KW_DEFINE=233
KW_DESCRIBE=234 KW_DELETE=234
KW_DISTINCT=235 KW_DESCRIBE=235
KW_DOUBLE=236 KW_DISTINCT=236
KW_DROP=237 KW_DOUBLE=237
KW_EACH=238 KW_DROP=238
KW_ELSE=239 KW_EACH=239
KW_END=240 KW_ELSE=240
KW_EQUALS=241 KW_END=241
KW_ESCAPE=242 KW_EQUALS=242
KW_EXCEPT=243 KW_ESCAPE=243
KW_EXECUTE=244 KW_EXCEPT=244
KW_EXISTS=245 KW_EXECUTE=245
KW_EXPLAIN=246 KW_EXISTS=246
KW_EXTERNAL=247 KW_EXPLAIN=247
KW_EXTRACT=248 KW_EXTERNAL=248
KW_FALSE=249 KW_EXTRACT=249
KW_FLOAT=250 KW_FALSE=250
KW_FOR=251 KW_FLOAT=251
KW_FROM=252 KW_FOR=252
KW_FULL=253 KW_FROM=253
KW_FUNCTION=254 KW_FULL=254
KW_GLOBAL=255 KW_FUNCTION=255
KW_GRANT=256 KW_GLOBAL=256
KW_GROUP=257 KW_GRANT=257
KW_GROUPING=258 KW_GROUP=258
KW_GROUPS=259 KW_GROUPING=259
KW_HAVING=260 KW_GROUPS=260
KW_HOUR=261 KW_HAVING=261
KW_IMPORT=262 KW_HOUR=262
KW_IN=263 KW_IMPORT=263
KW_INCLUDING=264 KW_IN=264
KW_INNER=265 KW_INCLUDING=265
KW_INOUT=266 KW_INNER=266
KW_INSERT=267 KW_INOUT=267
KW_INT=268 KW_INSERT=268
KW_INTEGER=269 KW_INT=269
KW_INTERSECT=270 KW_INTEGER=270
KW_INTERVAL=271 KW_INTERSECT=271
KW_INTO=272 KW_INTERVAL=272
KW_IS=273 KW_INTO=273
KW_JOIN=274 KW_IS=274
KW_LAG=275 KW_JOIN=275
KW_LANGUAGE=276 KW_LAG=276
KW_LATERAL=277 KW_LANGUAGE=277
KW_LEADING=278 KW_LATERAL=278
KW_LEFT=279 KW_LEADING=279
KW_LIKE=280 KW_LEFT=280
KW_LIMIT=281 KW_LIKE=281
KW_LOCAL=282 KW_LIMIT=282
KW_MATCH=283 KW_LOCAL=283
KW_MATCH_RECOGNIZE=284 KW_MATCH=284
KW_MEASURES=285 KW_MATCH_RECOGNIZE=285
KW_MERGE=286 KW_MEASURES=286
KW_METADATA=287 KW_MERGE=287
KW_MINUS=288 KW_METADATA=288
KW_MINUTE=289 KW_MINUS=289
KW_MODIFIES=290 KW_MINUTE=290
KW_MODULE=291 KW_MODIFIES=291
KW_MONTH=292 KW_MODULE=292
KW_MULTISET=293 KW_MONTH=293
KW_NATURAL=294 KW_MULTISET=294
KW_NEXT=295 KW_NATURAL=295
KW_NO=296 KW_NEXT=296
KW_NONE=297 KW_NO=297
KW_NOT=298 KW_NONE=298
KW_NULL=299 KW_NOT=299
KW_NUMERIC=300 KW_NULL=300
KW_OF=301 KW_NUMERIC=301
KW_OFFSET=302 KW_OF=302
KW_ON=303 KW_OFFSET=303
KW_ONE=304 KW_ON=304
KW_OR=305 KW_ONE=305
KW_ORDER=306 KW_OR=306
KW_OUT=307 KW_ORDER=307
KW_OUTER=308 KW_OUT=308
KW_OVER=309 KW_OUTER=309
KW_OVERLAY=310 KW_OVER=310
KW_PARTITION=311 KW_OVERLAY=311
KW_PATTERN=312 KW_PARTITION=312
KW_PER=313 KW_PATTERN=313
KW_PERCENT=314 KW_PER=314
KW_PERIOD=315 KW_PERCENT=315
KW_POSITION=316 KW_PERIOD=316
KW_POWER=317 KW_POSITION=317
KW_PRIMARY=318 KW_POWER=318
KW_RANGE=319 KW_PRIMARY=319
KW_RANK=320 KW_RANGE=320
KW_RESET=321 KW_RANK=321
KW_REVOKE=322 KW_RESET=322
KW_RIGHT=323 KW_REVOKE=323
KW_RLIKE=324 KW_RIGHT=324
KW_ROLLBACK=325 KW_RLIKE=325
KW_ROLLUP=326 KW_ROLLBACK=326
KW_ROW=327 KW_ROLLUP=327
KW_ROWS=328 KW_ROW=328
KW_SECOND=329 KW_ROWS=329
KW_SELECT=330 KW_SECOND=330
KW_SET=331 KW_SELECT=331
KW_SHOW=332 KW_SET=332
KW_SIMILAR=333 KW_SHOW=333
KW_SKIP=334 KW_SIMILAR=334
KW_SMALLINT=335 KW_SKIP=335
KW_START=336 KW_SMALLINT=336
KW_STATIC=337 KW_START=337
KW_SUBSTRING=338 KW_STATIC=338
KW_SUM=339 KW_SUBSTRING=339
KW_SYMMETRIC=340 KW_SUM=340
KW_SYSTEM=341 KW_SYMMETRIC=341
KW_SYSTEM_TIME=342 KW_SYSTEM=342
KW_SYSTEM_USER=343 KW_SYSTEM_TIME=343
KW_TABLE=344 KW_SYSTEM_USER=344
KW_TABLESAMPLE=345 KW_TABLE=345
KW_THEN=346 KW_TABLESAMPLE=346
KW_TIME=347 KW_THEN=347
KW_TIMESTAMP=348 KW_TIME=348
KW_TINYINT=349 KW_TIMESTAMP=349
KW_TO=350 KW_TINYINT=350
KW_TRAILING=351 KW_TO=351
KW_TRUE=352 KW_TRAILING=352
KW_TRUNCATE=353 KW_TRUE=353
KW_UNION=354 KW_TRUNCATE=354
KW_UNIQUE=355 KW_UNION=355
KW_UNKNOWN=356 KW_UNIQUE=356
KW_UNNEST=357 KW_UNKNOWN=357
KW_UPPER=358 KW_UNNEST=358
KW_UPSERT=359 KW_UPPER=359
KW_USER=360 KW_UPSERT=360
KW_USING=361 KW_USER=361
KW_VALUE=362 KW_USING=362
KW_VALUES=363 KW_VALUE=363
KW_VARBINARY=364 KW_VALUES=364
KW_VARCHAR=365 KW_VARBINARY=365
KW_WHEN=366 KW_VARCHAR=366
KW_WHERE=367 KW_WHEN=367
KW_WINDOW=368 KW_WHERE=368
KW_WITH=369 KW_WINDOW=369
KW_WITHIN=370 KW_WITH=370
KW_WITHOUT=371 KW_WITHIN=371
KW_YEAR=372 KW_WITHOUT=372
EQUAL_SYMBOL=373 KW_YEAR=373
GREATER_SYMBOL=374 EQUAL_SYMBOL=374
LESS_SYMBOL=375 GREATER_SYMBOL=375
EXCLAMATION_SYMBOL=376 LESS_SYMBOL=376
BIT_NOT_OP=377 EXCLAMATION_SYMBOL=377
BIT_OR_OP=378 BIT_NOT_OP=378
BIT_AND_OP=379 BIT_OR_OP=379
BIT_XOR_OP=380 BIT_AND_OP=380
DOT=381 BIT_XOR_OP=381
LS_BRACKET=382 DOT=382
RS_BRACKET=383 LS_BRACKET=383
LR_BRACKET=384 RS_BRACKET=384
RR_BRACKET=385 LR_BRACKET=385
LB_BRACKET=386 RR_BRACKET=386
RB_BRACKET=387 LB_BRACKET=387
COMMA=388 RB_BRACKET=388
SEMICOLON=389 COMMA=389
AT_SIGN=390 SEMICOLON=390
SINGLE_QUOTE_SYMB=391 AT_SIGN=391
DOUBLE_QUOTE_SYMB=392 SINGLE_QUOTE_SYMB=392
REVERSE_QUOTE_SYMB=393 DOUBLE_QUOTE_SYMB=393
COLON_SYMB=394 REVERSE_QUOTE_SYMB=394
ASTERISK_SIGN=395 COLON_SYMB=395
UNDERLINE_SIGN=396 ASTERISK_SIGN=396
HYPNEN_SIGN=397 UNDERLINE_SIGN=397
ADD_SIGN=398 HYPNEN_SIGN=398
PENCENT_SIGN=399 ADD_SIGN=399
DOUBLE_VERTICAL_SIGN=400 PENCENT_SIGN=400
DOUBLE_HYPNEN_SIGN=401 DOUBLE_VERTICAL_SIGN=401
SLASH_SIGN=402 DOUBLE_HYPNEN_SIGN=402
QUESTION_MARK_SIGN=403 SLASH_SIGN=403
DOUBLE_RIGHT_ARROW=404 QUESTION_MARK_SIGN=404
STRING_LITERAL=405 DOUBLE_RIGHT_ARROW=405
DIG_LITERAL=406 STRING_LITERAL=406
REAL_LITERAL=407 DIG_LITERAL=407
BIT_STRING=408 REAL_LITERAL=408
ID_LITERAL=409 BIT_STRING=409
SLASH_TEXT=410 ID_LITERAL=410
SLASH_TEXT=411
'ADD'=4 'ADD'=4
'ADMIN'=5 'ADMIN'=5
'AFTER'=6 'AFTER'=6
@ -614,198 +615,199 @@ SLASH_TEXT=410
'CLOB'=207 'CLOB'=207
'CLOSE'=208 'CLOSE'=208
'COALESCE'=209 'COALESCE'=209
'COLLATE'=210 'CONFIG'=210
'COLLECT'=211 'COLLATE'=211
'COLUMN'=212 'COLLECT'=212
'COMMIT'=213 'COLUMN'=213
'CONNECT'=214 'COMMIT'=214
'CONSTRAINT'=215 'CONNECT'=215
'CONTAINS'=216 'CONSTRAINT'=216
'CONVERT'=217 'CONTAINS'=217
'COUNT'=218 'CONVERT'=218
'CREATE'=219 'COUNT'=219
'CROSS'=220 'CREATE'=220
'CUBE'=221 'CROSS'=221
'CURRENT'=222 'CUBE'=222
'CURSOR'=223 'CURRENT'=223
'CYCLE'=224 'CURSOR'=224
'DATE'=225 'CYCLE'=225
'DATETIME'=226 'DATE'=226
'DAY'=227 'DATETIME'=227
'DEC'=228 'DAY'=228
'DECIMAL'=229 'DEC'=229
'DECLARE'=230 'DECIMAL'=230
'DEFAULT'=231 'DECLARE'=231
'DEFINE'=232 'DEFAULT'=232
'DELETE'=233 'DEFINE'=233
'DESCRIBE'=234 'DELETE'=234
'DISTINCT'=235 'DESCRIBE'=235
'DOUBLE'=236 'DISTINCT'=236
'DROP'=237 'DOUBLE'=237
'EACH'=238 'DROP'=238
'ELSE'=239 'EACH'=239
'END'=240 'ELSE'=240
'EQUALS'=241 'END'=241
'ESCAPE'=242 'EQUALS'=242
'EXCEPT'=243 'ESCAPE'=243
'EXECUTE'=244 'EXCEPT'=244
'EXISTS'=245 'EXECUTE'=245
'EXPLAIN'=246 'EXISTS'=246
'EXTERNAL'=247 'EXPLAIN'=247
'EXTRACT'=248 'EXTERNAL'=248
'FALSE'=249 'EXTRACT'=249
'FLOAT'=250 'FALSE'=250
'FOR'=251 'FLOAT'=251
'FROM'=252 'FOR'=252
'FULL'=253 'FROM'=253
'FUNCTION'=254 'FULL'=254
'GLOBAL'=255 'FUNCTION'=255
'GRANT'=256 'GLOBAL'=256
'GROUP'=257 'GRANT'=257
'GROUPING'=258 'GROUP'=258
'GROUPS'=259 'GROUPING'=259
'HAVING'=260 'GROUPS'=260
'HOUR'=261 'HAVING'=261
'IMPORT'=262 'HOUR'=262
'IN'=263 'IMPORT'=263
'INCLUDING'=264 'IN'=264
'INNER'=265 'INCLUDING'=265
'INOUT'=266 'INNER'=266
'INSERT'=267 'INOUT'=267
'INT'=268 'INSERT'=268
'INTEGER'=269 'INT'=269
'INTERSECT'=270 'INTEGER'=270
'INTERVAL'=271 'INTERSECT'=271
'INTO'=272 'INTERVAL'=272
'IS'=273 'INTO'=273
'JOIN'=274 'IS'=274
'LAG'=275 'JOIN'=275
'LANGUAGE'=276 'LAG'=276
'LATERAL'=277 'LANGUAGE'=277
'LEADING'=278 'LATERAL'=278
'LEFT'=279 'LEADING'=279
'LIKE'=280 'LEFT'=280
'LIMIT'=281 'LIKE'=281
'LOCAL'=282 'LIMIT'=282
'MATCH'=283 'LOCAL'=283
'MATCH_RECOGNIZE'=284 'MATCH'=284
'MEASURES'=285 'MATCH_RECOGNIZE'=285
'MERGE'=286 'MEASURES'=286
'METADATA'=287 'MERGE'=287
'MINUS'=288 'METADATA'=288
'MINUTE'=289 'MINUS'=289
'MODIFIES'=290 'MINUTE'=290
'MODULE'=291 'MODIFIES'=291
'MONTH'=292 'MODULE'=292
'MULTISET'=293 'MONTH'=293
'NATURAL'=294 'MULTISET'=294
'NEXT'=295 'NATURAL'=295
'NO'=296 'NEXT'=296
'NONE'=297 'NO'=297
'NOT'=298 'NONE'=298
'NULL'=299 'NOT'=299
'NUMERIC'=300 'NULL'=300
'OF'=301 'NUMERIC'=301
'OFFSET'=302 'OF'=302
'ON'=303 'OFFSET'=303
'ONE'=304 'ON'=304
'OR'=305 'ONE'=305
'ORDER'=306 'OR'=306
'OUT'=307 'ORDER'=307
'OUTER'=308 'OUT'=308
'OVER'=309 'OUTER'=309
'OVERLAY'=310 'OVER'=310
'PARTITION'=311 'OVERLAY'=311
'PATTERN'=312 'PARTITION'=312
'PER'=313 'PATTERN'=313
'PERCENT'=314 'PER'=314
'PERIOD'=315 'PERCENT'=315
'POSITION'=316 'PERIOD'=316
'POWER'=317 'POSITION'=317
'PRIMARY'=318 'POWER'=318
'RANGE'=319 'PRIMARY'=319
'RANK'=320 'RANGE'=320
'RESET'=321 'RANK'=321
'REVOKE'=322 'RESET'=322
'RIGHT'=323 'REVOKE'=323
'RLIKE'=324 'RIGHT'=324
'ROLLBACK'=325 'RLIKE'=325
'ROLLUP'=326 'ROLLBACK'=326
'ROW'=327 'ROLLUP'=327
'ROWS'=328 'ROW'=328
'SECOND'=329 'ROWS'=329
'SELECT'=330 'SECOND'=330
'SET'=331 'SELECT'=331
'SHOW'=332 'SET'=332
'SIMILAR'=333 'SHOW'=333
'SKIP'=334 'SIMILAR'=334
'SMALLINT'=335 'SKIP'=335
'START'=336 'SMALLINT'=336
'STATIC'=337 'START'=337
'SUBSTRING'=338 'STATIC'=338
'SUM'=339 'SUBSTRING'=339
'SYMMETRIC'=340 'SUM'=340
'SYSTEM'=341 'SYMMETRIC'=341
'SYSTEM_TIME'=342 'SYSTEM'=342
'SYSTEM_USER'=343 'SYSTEM_TIME'=343
'TABLE'=344 'SYSTEM_USER'=344
'TABLESAMPLE'=345 'TABLE'=345
'THEN'=346 'TABLESAMPLE'=346
'TIME'=347 'THEN'=347
'TIMESTAMP'=348 'TIME'=348
'TINYINT'=349 'TIMESTAMP'=349
'TO'=350 'TINYINT'=350
'TRAILING'=351 'TO'=351
'TRUE'=352 'TRAILING'=352
'TRUNCATE'=353 'TRUE'=353
'UNION'=354 'TRUNCATE'=354
'UNIQUE'=355 'UNION'=355
'UNKNOWN'=356 'UNIQUE'=356
'UNNEST'=357 'UNKNOWN'=357
'UPPER'=358 'UNNEST'=358
'UPSERT'=359 'UPPER'=359
'USER'=360 'UPSERT'=360
'USING'=361 'USER'=361
'VALUE'=362 'USING'=362
'VALUES'=363 'VALUE'=363
'VARBINARY'=364 'VALUES'=364
'VARCHAR'=365 'VARBINARY'=365
'WHEN'=366 'VARCHAR'=366
'WHERE'=367 'WHEN'=367
'WINDOW'=368 'WHERE'=368
'WITH'=369 'WINDOW'=369
'WITHIN'=370 'WITH'=370
'WITHOUT'=371 'WITHIN'=371
'YEAR'=372 'WITHOUT'=372
'='=373 'YEAR'=373
'>'=374 '='=374
'<'=375 '>'=375
'!'=376 '<'=376
'~'=377 '!'=377
'|'=378 '~'=378
'&'=379 '|'=379
'^'=380 '&'=380
'.'=381 '^'=381
'['=382 '.'=382
']'=383 '['=383
'('=384 ']'=384
')'=385 '('=385
'{'=386 ')'=386
'}'=387 '{'=387
','=388 '}'=388
';'=389 ','=389
'@'=390 ';'=390
'\''=391 '@'=391
'"'=392 '\''=392
'`'=393 '"'=393
':'=394 '`'=394
'*'=395 ':'=395
'_'=396 '*'=396
'-'=397 '_'=397
'+'=398 '-'=398
'%'=399 '+'=399
'||'=400 '%'=400
'--'=401 '||'=401
'/'=402 '--'=402
'?'=403 '/'=403
'=>'=404 '?'=404
'=>'=405

File diff suppressed because one or more lines are too long

View File

@ -2,6 +2,8 @@ ADD JAR WITH /home/test.jar;
ADD JAR WITH /home/test.jar AS test.jar; ADD JAR WITH /home/test.jar AS test.jar;
ADD FILE WITH /home/admin/sftp/dttest_cn/DsCenter_1687/krb5.conf;
ADD FILE WITH /home/admin/sftp/dttest_cn/DsCenter_1687/krb5.conf AS krb5.conf; ADD FILE WITH /home/admin/sftp/dttest_cn/DsCenter_1687/krb5.conf AS krb5.conf;
ADD FILE WITH /home/admin/sftp/dttest_cn/DsCenter_1687/krb5.conf RENAME test.conf; ADD FILE WITH /home/admin/sftp/dttest_cn/DsCenter_1687/krb5.conf RENAME test.conf;
@ -10,8 +12,14 @@ ADD PYTHON_FILES WITH /test.py RENAME test.py;
ADD PYTHON_REQUIREMENTS WITH /requirements.txt RENAME requirements.txt; ADD PYTHON_REQUIREMENTS WITH /requirements.txt RENAME requirements.txt;
ADD PYTHON_DEPENDENCIES WITH /dependencies.txt RENAME dependencies.txt;
ADD PYTHON_JAR WITH /python_jar.jar RENAME py_jar.jar; ADD PYTHON_JAR WITH /python_jar.jar RENAME py_jar.jar;
ADD PYTHON_PARAMETER /parameter.py; ADD PYTHON_PARAMETER /parameter.py;
ADD PYTHON_ARCHIVES WITH /archives.py RENAME archive.tx;
ADD ENGINE FILE WITH /filePath RENAME theName KEY theKey; ADD ENGINE FILE WITH /filePath RENAME theName KEY theKey;
ADD CONFIG FILE WITH /config.ini FOR hiveConf as hadoop.cong.dir;

View File

@ -42,6 +42,13 @@ SELECT `user`,
country country
FROM page_view_source; FROM page_view_source;
--- Insert with function
INSERT INTO hbase_table
SELECT
st.id as rowKey,
ROW(id, name, age) as baseInfo
FROM sourceTable st;