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