dt-sql-parser 4.0.0-beta.4.1 → 4.0.0-beta.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/dist/index.js +2 -2
  3. package/dist/index.js.map +1 -1
  4. package/dist/lib/flinksql/FlinkSqlLexer.d.ts +202 -201
  5. package/dist/lib/flinksql/FlinkSqlLexer.js +2003 -1996
  6. package/dist/lib/flinksql/FlinkSqlLexer.js.map +1 -1
  7. package/dist/lib/flinksql/FlinkSqlParser.d.ts +206 -201
  8. package/dist/lib/flinksql/FlinkSqlParser.js +2625 -2589
  9. package/dist/lib/flinksql/FlinkSqlParser.js.map +1 -1
  10. package/dist/lib/hive/HiveSqlLexer.d.ts +327 -328
  11. package/dist/lib/hive/HiveSqlLexer.js +2408 -2427
  12. package/dist/lib/hive/HiveSqlLexer.js.map +1 -1
  13. package/dist/lib/hive/{HiveSql.d.ts → HiveSqlParser.d.ts} +2327 -2245
  14. package/dist/lib/hive/{HiveSql.js → HiveSqlParser.js} +16408 -16320
  15. package/dist/lib/hive/HiveSqlParser.js.map +1 -0
  16. package/dist/lib/hive/{HiveSqlListener.d.ts → HiveSqlParserListener.d.ts} +1543 -1499
  17. package/dist/lib/hive/HiveSqlParserListener.js +3 -0
  18. package/dist/lib/hive/HiveSqlParserListener.js.map +1 -0
  19. package/dist/lib/hive/{HiveSqlVisitor.d.ts → HiveSqlParserVisitor.d.ts} +1028 -1000
  20. package/dist/lib/hive/HiveSqlParserVisitor.js +3 -0
  21. package/dist/lib/hive/HiveSqlParserVisitor.js.map +1 -0
  22. package/dist/parser/flinksql.d.ts +1 -1
  23. package/dist/parser/hive.d.ts +3 -3
  24. package/dist/parser/hive.js +2 -2
  25. package/dist/parser/hive.js.map +1 -1
  26. package/package.json +3 -2
  27. package/dist/lib/hive/HiveSql.js.map +0 -1
  28. package/dist/lib/hive/HiveSqlListener.js +0 -3
  29. package/dist/lib/hive/HiveSqlListener.js.map +0 -1
  30. package/dist/lib/hive/HiveSqlVisitor.js +0 -3
  31. package/dist/lib/hive/HiveSqlVisitor.js.map +0 -1
@@ -219,207 +219,208 @@ export declare class FlinkSqlParser extends Parser {
219
219
  static readonly KW_CLOB = 207;
220
220
  static readonly KW_CLOSE = 208;
221
221
  static readonly KW_COALESCE = 209;
222
- static readonly KW_COLLATE = 210;
223
- static readonly KW_COLLECT = 211;
224
- static readonly KW_COLUMN = 212;
225
- static readonly KW_COMMIT = 213;
226
- static readonly KW_CONNECT = 214;
227
- static readonly KW_CONSTRAINT = 215;
228
- static readonly KW_CONTAINS = 216;
229
- static readonly KW_CONVERT = 217;
230
- static readonly KW_COUNT = 218;
231
- static readonly KW_CREATE = 219;
232
- static readonly KW_CROSS = 220;
233
- static readonly KW_CUBE = 221;
234
- static readonly KW_CURRENT = 222;
235
- static readonly KW_CURSOR = 223;
236
- static readonly KW_CYCLE = 224;
237
- static readonly KW_DATE = 225;
238
- static readonly KW_DATETIME = 226;
239
- static readonly KW_DAY = 227;
240
- static readonly KW_DEC = 228;
241
- static readonly KW_DECIMAL = 229;
242
- static readonly KW_DECLARE = 230;
243
- static readonly KW_DEFAULT = 231;
244
- static readonly KW_DEFINE = 232;
245
- static readonly KW_DELETE = 233;
246
- static readonly KW_DESCRIBE = 234;
247
- static readonly KW_DISTINCT = 235;
248
- static readonly KW_DOUBLE = 236;
249
- static readonly KW_DROP = 237;
250
- static readonly KW_EACH = 238;
251
- static readonly KW_ELSE = 239;
252
- static readonly KW_END = 240;
253
- static readonly KW_EQUALS = 241;
254
- static readonly KW_ESCAPE = 242;
255
- static readonly KW_EXCEPT = 243;
256
- static readonly KW_EXECUTE = 244;
257
- static readonly KW_EXISTS = 245;
258
- static readonly KW_EXPLAIN = 246;
259
- static readonly KW_EXTERNAL = 247;
260
- static readonly KW_EXTRACT = 248;
261
- static readonly KW_FALSE = 249;
262
- static readonly KW_FLOAT = 250;
263
- static readonly KW_FOR = 251;
264
- static readonly KW_FROM = 252;
265
- static readonly KW_FULL = 253;
266
- static readonly KW_FUNCTION = 254;
267
- static readonly KW_GLOBAL = 255;
268
- static readonly KW_GRANT = 256;
269
- static readonly KW_GROUP = 257;
270
- static readonly KW_GROUPING = 258;
271
- static readonly KW_GROUPS = 259;
272
- static readonly KW_HAVING = 260;
273
- static readonly KW_HOUR = 261;
274
- static readonly KW_IMPORT = 262;
275
- static readonly KW_IN = 263;
276
- static readonly KW_INCLUDING = 264;
277
- static readonly KW_INNER = 265;
278
- static readonly KW_INOUT = 266;
279
- static readonly KW_INSERT = 267;
280
- static readonly KW_INT = 268;
281
- static readonly KW_INTEGER = 269;
282
- static readonly KW_INTERSECT = 270;
283
- static readonly KW_INTERVAL = 271;
284
- static readonly KW_INTO = 272;
285
- static readonly KW_IS = 273;
286
- static readonly KW_JOIN = 274;
287
- static readonly KW_LAG = 275;
288
- static readonly KW_LANGUAGE = 276;
289
- static readonly KW_LATERAL = 277;
290
- static readonly KW_LEADING = 278;
291
- static readonly KW_LEFT = 279;
292
- static readonly KW_LIKE = 280;
293
- static readonly KW_LIMIT = 281;
294
- static readonly KW_LOCAL = 282;
295
- static readonly KW_MATCH = 283;
296
- static readonly KW_MATCH_RECOGNIZE = 284;
297
- static readonly KW_MEASURES = 285;
298
- static readonly KW_MERGE = 286;
299
- static readonly KW_METADATA = 287;
300
- static readonly KW_MINUS = 288;
301
- static readonly KW_MINUTE = 289;
302
- static readonly KW_MODIFIES = 290;
303
- static readonly KW_MODULE = 291;
304
- static readonly KW_MONTH = 292;
305
- static readonly KW_MULTISET = 293;
306
- static readonly KW_NATURAL = 294;
307
- static readonly KW_NEXT = 295;
308
- static readonly KW_NO = 296;
309
- static readonly KW_NONE = 297;
310
- static readonly KW_NOT = 298;
311
- static readonly KW_NULL = 299;
312
- static readonly KW_NUMERIC = 300;
313
- static readonly KW_OF = 301;
314
- static readonly KW_OFFSET = 302;
315
- static readonly KW_ON = 303;
316
- static readonly KW_ONE = 304;
317
- static readonly KW_OR = 305;
318
- static readonly KW_ORDER = 306;
319
- static readonly KW_OUT = 307;
320
- static readonly KW_OUTER = 308;
321
- static readonly KW_OVER = 309;
322
- static readonly KW_OVERLAY = 310;
323
- static readonly KW_PARTITION = 311;
324
- static readonly KW_PATTERN = 312;
325
- static readonly KW_PER = 313;
326
- static readonly KW_PERCENT = 314;
327
- static readonly KW_PERIOD = 315;
328
- static readonly KW_POSITION = 316;
329
- static readonly KW_POWER = 317;
330
- static readonly KW_PRIMARY = 318;
331
- static readonly KW_RANGE = 319;
332
- static readonly KW_RANK = 320;
333
- static readonly KW_RESET = 321;
334
- static readonly KW_REVOKE = 322;
335
- static readonly KW_RIGHT = 323;
336
- static readonly KW_RLIKE = 324;
337
- static readonly KW_ROLLBACK = 325;
338
- static readonly KW_ROLLUP = 326;
339
- static readonly KW_ROW = 327;
340
- static readonly KW_ROWS = 328;
341
- static readonly KW_SECOND = 329;
342
- static readonly KW_SELECT = 330;
343
- static readonly KW_SET = 331;
344
- static readonly KW_SHOW = 332;
345
- static readonly KW_SIMILAR = 333;
346
- static readonly KW_SKIP = 334;
347
- static readonly KW_SMALLINT = 335;
348
- static readonly KW_START = 336;
349
- static readonly KW_STATIC = 337;
350
- static readonly KW_SUBSTRING = 338;
351
- static readonly KW_SUM = 339;
352
- static readonly KW_SYMMETRIC = 340;
353
- static readonly KW_SYSTEM = 341;
354
- static readonly KW_SYSTEM_TIME = 342;
355
- static readonly KW_SYSTEM_USER = 343;
356
- static readonly KW_TABLE = 344;
357
- static readonly KW_TABLESAMPLE = 345;
358
- static readonly KW_THEN = 346;
359
- static readonly KW_TIME = 347;
360
- static readonly KW_TIMESTAMP = 348;
361
- static readonly KW_TINYINT = 349;
362
- static readonly KW_TO = 350;
363
- static readonly KW_TRAILING = 351;
364
- static readonly KW_TRUE = 352;
365
- static readonly KW_TRUNCATE = 353;
366
- static readonly KW_UNION = 354;
367
- static readonly KW_UNIQUE = 355;
368
- static readonly KW_UNKNOWN = 356;
369
- static readonly KW_UNNEST = 357;
370
- static readonly KW_UPPER = 358;
371
- static readonly KW_UPSERT = 359;
372
- static readonly KW_USER = 360;
373
- static readonly KW_USING = 361;
374
- static readonly KW_VALUE = 362;
375
- static readonly KW_VALUES = 363;
376
- static readonly KW_VARBINARY = 364;
377
- static readonly KW_VARCHAR = 365;
378
- static readonly KW_WHEN = 366;
379
- static readonly KW_WHERE = 367;
380
- static readonly KW_WINDOW = 368;
381
- static readonly KW_WITH = 369;
382
- static readonly KW_WITHIN = 370;
383
- static readonly KW_WITHOUT = 371;
384
- static readonly KW_YEAR = 372;
385
- static readonly EQUAL_SYMBOL = 373;
386
- static readonly GREATER_SYMBOL = 374;
387
- static readonly LESS_SYMBOL = 375;
388
- static readonly EXCLAMATION_SYMBOL = 376;
389
- static readonly BIT_NOT_OP = 377;
390
- static readonly BIT_OR_OP = 378;
391
- static readonly BIT_AND_OP = 379;
392
- static readonly BIT_XOR_OP = 380;
393
- static readonly DOT = 381;
394
- static readonly LS_BRACKET = 382;
395
- static readonly RS_BRACKET = 383;
396
- static readonly LR_BRACKET = 384;
397
- static readonly RR_BRACKET = 385;
398
- static readonly LB_BRACKET = 386;
399
- static readonly RB_BRACKET = 387;
400
- static readonly COMMA = 388;
401
- static readonly SEMICOLON = 389;
402
- static readonly AT_SIGN = 390;
403
- static readonly SINGLE_QUOTE_SYMB = 391;
404
- static readonly DOUBLE_QUOTE_SYMB = 392;
405
- static readonly REVERSE_QUOTE_SYMB = 393;
406
- static readonly COLON_SYMB = 394;
407
- static readonly ASTERISK_SIGN = 395;
408
- static readonly UNDERLINE_SIGN = 396;
409
- static readonly HYPNEN_SIGN = 397;
410
- static readonly ADD_SIGN = 398;
411
- static readonly PENCENT_SIGN = 399;
412
- static readonly DOUBLE_VERTICAL_SIGN = 400;
413
- static readonly DOUBLE_HYPNEN_SIGN = 401;
414
- static readonly SLASH_SIGN = 402;
415
- static readonly QUESTION_MARK_SIGN = 403;
416
- static readonly DOUBLE_RIGHT_ARROW = 404;
417
- static readonly STRING_LITERAL = 405;
418
- static readonly DIG_LITERAL = 406;
419
- static readonly REAL_LITERAL = 407;
420
- static readonly BIT_STRING = 408;
421
- static readonly ID_LITERAL = 409;
422
- static readonly SLASH_TEXT = 410;
222
+ static readonly KW_CONFIG = 210;
223
+ static readonly KW_COLLATE = 211;
224
+ static readonly KW_COLLECT = 212;
225
+ static readonly KW_COLUMN = 213;
226
+ static readonly KW_COMMIT = 214;
227
+ static readonly KW_CONNECT = 215;
228
+ static readonly KW_CONSTRAINT = 216;
229
+ static readonly KW_CONTAINS = 217;
230
+ static readonly KW_CONVERT = 218;
231
+ static readonly KW_COUNT = 219;
232
+ static readonly KW_CREATE = 220;
233
+ static readonly KW_CROSS = 221;
234
+ static readonly KW_CUBE = 222;
235
+ static readonly KW_CURRENT = 223;
236
+ static readonly KW_CURSOR = 224;
237
+ static readonly KW_CYCLE = 225;
238
+ static readonly KW_DATE = 226;
239
+ static readonly KW_DATETIME = 227;
240
+ static readonly KW_DAY = 228;
241
+ static readonly KW_DEC = 229;
242
+ static readonly KW_DECIMAL = 230;
243
+ static readonly KW_DECLARE = 231;
244
+ static readonly KW_DEFAULT = 232;
245
+ static readonly KW_DEFINE = 233;
246
+ static readonly KW_DELETE = 234;
247
+ static readonly KW_DESCRIBE = 235;
248
+ static readonly KW_DISTINCT = 236;
249
+ static readonly KW_DOUBLE = 237;
250
+ static readonly KW_DROP = 238;
251
+ static readonly KW_EACH = 239;
252
+ static readonly KW_ELSE = 240;
253
+ static readonly KW_END = 241;
254
+ static readonly KW_EQUALS = 242;
255
+ static readonly KW_ESCAPE = 243;
256
+ static readonly KW_EXCEPT = 244;
257
+ static readonly KW_EXECUTE = 245;
258
+ static readonly KW_EXISTS = 246;
259
+ static readonly KW_EXPLAIN = 247;
260
+ static readonly KW_EXTERNAL = 248;
261
+ static readonly KW_EXTRACT = 249;
262
+ static readonly KW_FALSE = 250;
263
+ static readonly KW_FLOAT = 251;
264
+ static readonly KW_FOR = 252;
265
+ static readonly KW_FROM = 253;
266
+ static readonly KW_FULL = 254;
267
+ static readonly KW_FUNCTION = 255;
268
+ static readonly KW_GLOBAL = 256;
269
+ static readonly KW_GRANT = 257;
270
+ static readonly KW_GROUP = 258;
271
+ static readonly KW_GROUPING = 259;
272
+ static readonly KW_GROUPS = 260;
273
+ static readonly KW_HAVING = 261;
274
+ static readonly KW_HOUR = 262;
275
+ static readonly KW_IMPORT = 263;
276
+ static readonly KW_IN = 264;
277
+ static readonly KW_INCLUDING = 265;
278
+ static readonly KW_INNER = 266;
279
+ static readonly KW_INOUT = 267;
280
+ static readonly KW_INSERT = 268;
281
+ static readonly KW_INT = 269;
282
+ static readonly KW_INTEGER = 270;
283
+ static readonly KW_INTERSECT = 271;
284
+ static readonly KW_INTERVAL = 272;
285
+ static readonly KW_INTO = 273;
286
+ static readonly KW_IS = 274;
287
+ static readonly KW_JOIN = 275;
288
+ static readonly KW_LAG = 276;
289
+ static readonly KW_LANGUAGE = 277;
290
+ static readonly KW_LATERAL = 278;
291
+ static readonly KW_LEADING = 279;
292
+ static readonly KW_LEFT = 280;
293
+ static readonly KW_LIKE = 281;
294
+ static readonly KW_LIMIT = 282;
295
+ static readonly KW_LOCAL = 283;
296
+ static readonly KW_MATCH = 284;
297
+ static readonly KW_MATCH_RECOGNIZE = 285;
298
+ static readonly KW_MEASURES = 286;
299
+ static readonly KW_MERGE = 287;
300
+ static readonly KW_METADATA = 288;
301
+ static readonly KW_MINUS = 289;
302
+ static readonly KW_MINUTE = 290;
303
+ static readonly KW_MODIFIES = 291;
304
+ static readonly KW_MODULE = 292;
305
+ static readonly KW_MONTH = 293;
306
+ static readonly KW_MULTISET = 294;
307
+ static readonly KW_NATURAL = 295;
308
+ static readonly KW_NEXT = 296;
309
+ static readonly KW_NO = 297;
310
+ static readonly KW_NONE = 298;
311
+ static readonly KW_NOT = 299;
312
+ static readonly KW_NULL = 300;
313
+ static readonly KW_NUMERIC = 301;
314
+ static readonly KW_OF = 302;
315
+ static readonly KW_OFFSET = 303;
316
+ static readonly KW_ON = 304;
317
+ static readonly KW_ONE = 305;
318
+ static readonly KW_OR = 306;
319
+ static readonly KW_ORDER = 307;
320
+ static readonly KW_OUT = 308;
321
+ static readonly KW_OUTER = 309;
322
+ static readonly KW_OVER = 310;
323
+ static readonly KW_OVERLAY = 311;
324
+ static readonly KW_PARTITION = 312;
325
+ static readonly KW_PATTERN = 313;
326
+ static readonly KW_PER = 314;
327
+ static readonly KW_PERCENT = 315;
328
+ static readonly KW_PERIOD = 316;
329
+ static readonly KW_POSITION = 317;
330
+ static readonly KW_POWER = 318;
331
+ static readonly KW_PRIMARY = 319;
332
+ static readonly KW_RANGE = 320;
333
+ static readonly KW_RANK = 321;
334
+ static readonly KW_RESET = 322;
335
+ static readonly KW_REVOKE = 323;
336
+ static readonly KW_RIGHT = 324;
337
+ static readonly KW_RLIKE = 325;
338
+ static readonly KW_ROLLBACK = 326;
339
+ static readonly KW_ROLLUP = 327;
340
+ static readonly KW_ROW = 328;
341
+ static readonly KW_ROWS = 329;
342
+ static readonly KW_SECOND = 330;
343
+ static readonly KW_SELECT = 331;
344
+ static readonly KW_SET = 332;
345
+ static readonly KW_SHOW = 333;
346
+ static readonly KW_SIMILAR = 334;
347
+ static readonly KW_SKIP = 335;
348
+ static readonly KW_SMALLINT = 336;
349
+ static readonly KW_START = 337;
350
+ static readonly KW_STATIC = 338;
351
+ static readonly KW_SUBSTRING = 339;
352
+ static readonly KW_SUM = 340;
353
+ static readonly KW_SYMMETRIC = 341;
354
+ static readonly KW_SYSTEM = 342;
355
+ static readonly KW_SYSTEM_TIME = 343;
356
+ static readonly KW_SYSTEM_USER = 344;
357
+ static readonly KW_TABLE = 345;
358
+ static readonly KW_TABLESAMPLE = 346;
359
+ static readonly KW_THEN = 347;
360
+ static readonly KW_TIME = 348;
361
+ static readonly KW_TIMESTAMP = 349;
362
+ static readonly KW_TINYINT = 350;
363
+ static readonly KW_TO = 351;
364
+ static readonly KW_TRAILING = 352;
365
+ static readonly KW_TRUE = 353;
366
+ static readonly KW_TRUNCATE = 354;
367
+ static readonly KW_UNION = 355;
368
+ static readonly KW_UNIQUE = 356;
369
+ static readonly KW_UNKNOWN = 357;
370
+ static readonly KW_UNNEST = 358;
371
+ static readonly KW_UPPER = 359;
372
+ static readonly KW_UPSERT = 360;
373
+ static readonly KW_USER = 361;
374
+ static readonly KW_USING = 362;
375
+ static readonly KW_VALUE = 363;
376
+ static readonly KW_VALUES = 364;
377
+ static readonly KW_VARBINARY = 365;
378
+ static readonly KW_VARCHAR = 366;
379
+ static readonly KW_WHEN = 367;
380
+ static readonly KW_WHERE = 368;
381
+ static readonly KW_WINDOW = 369;
382
+ static readonly KW_WITH = 370;
383
+ static readonly KW_WITHIN = 371;
384
+ static readonly KW_WITHOUT = 372;
385
+ static readonly KW_YEAR = 373;
386
+ static readonly EQUAL_SYMBOL = 374;
387
+ static readonly GREATER_SYMBOL = 375;
388
+ static readonly LESS_SYMBOL = 376;
389
+ static readonly EXCLAMATION_SYMBOL = 377;
390
+ static readonly BIT_NOT_OP = 378;
391
+ static readonly BIT_OR_OP = 379;
392
+ static readonly BIT_AND_OP = 380;
393
+ static readonly BIT_XOR_OP = 381;
394
+ static readonly DOT = 382;
395
+ static readonly LS_BRACKET = 383;
396
+ static readonly RS_BRACKET = 384;
397
+ static readonly LR_BRACKET = 385;
398
+ static readonly RR_BRACKET = 386;
399
+ static readonly LB_BRACKET = 387;
400
+ static readonly RB_BRACKET = 388;
401
+ static readonly COMMA = 389;
402
+ static readonly SEMICOLON = 390;
403
+ static readonly AT_SIGN = 391;
404
+ static readonly SINGLE_QUOTE_SYMB = 392;
405
+ static readonly DOUBLE_QUOTE_SYMB = 393;
406
+ static readonly REVERSE_QUOTE_SYMB = 394;
407
+ static readonly COLON_SYMB = 395;
408
+ static readonly ASTERISK_SIGN = 396;
409
+ static readonly UNDERLINE_SIGN = 397;
410
+ static readonly HYPNEN_SIGN = 398;
411
+ static readonly ADD_SIGN = 399;
412
+ static readonly PENCENT_SIGN = 400;
413
+ static readonly DOUBLE_VERTICAL_SIGN = 401;
414
+ static readonly DOUBLE_HYPNEN_SIGN = 402;
415
+ static readonly SLASH_SIGN = 403;
416
+ static readonly QUESTION_MARK_SIGN = 404;
417
+ static readonly DOUBLE_RIGHT_ARROW = 405;
418
+ static readonly STRING_LITERAL = 406;
419
+ static readonly DIG_LITERAL = 407;
420
+ static readonly REAL_LITERAL = 408;
421
+ static readonly BIT_STRING = 409;
422
+ static readonly ID_LITERAL = 410;
423
+ static readonly SLASH_TEXT = 411;
423
424
  static readonly RULE_program = 0;
424
425
  static readonly RULE_statement = 1;
425
426
  static readonly RULE_sqlStatements = 2;
@@ -1078,6 +1079,8 @@ export declare class DtAddStatementContext extends ParserRuleContext {
1078
1079
  KW_PYTHON_PARAMETER(): TerminalNode | undefined;
1079
1080
  KW_ENGINE(): TerminalNode | undefined;
1080
1081
  KW_KEY(): TerminalNode | undefined;
1082
+ KW_CONFIG(): TerminalNode | undefined;
1083
+ KW_FOR(): TerminalNode | undefined;
1081
1084
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1082
1085
  get ruleIndex(): number;
1083
1086
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3420,6 +3423,8 @@ export declare class ReservedKeywordsUsedAsFuncNameContext extends ParserRuleCon
3420
3423
  KW_POSITION(): TerminalNode | undefined;
3421
3424
  KW_POWER(): TerminalNode | undefined;
3422
3425
  KW_QUARTER(): TerminalNode | undefined;
3426
+ KW_ROW(): TerminalNode | undefined;
3427
+ KW_ROWS(): TerminalNode | undefined;
3423
3428
  KW_RANK(): TerminalNode | undefined;
3424
3429
  KW_RIGHT(): TerminalNode | undefined;
3425
3430
  KW_SECOND(): TerminalNode | undefined;