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

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 (93) hide show
  1. package/README.md +124 -43
  2. package/dist/index.d.ts +5 -5
  3. package/dist/index.js +4 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/lib/flinksql/FlinkSqlLexer.d.ts +202 -201
  6. package/dist/lib/flinksql/FlinkSqlLexer.js +2003 -1996
  7. package/dist/lib/flinksql/FlinkSqlLexer.js.map +1 -1
  8. package/dist/lib/flinksql/FlinkSqlParser.d.ts +328 -265
  9. package/dist/lib/flinksql/FlinkSqlParser.js +3712 -3076
  10. package/dist/lib/flinksql/FlinkSqlParser.js.map +1 -1
  11. package/dist/lib/flinksql/FlinkSqlParserListener.d.ts +44 -0
  12. package/dist/lib/flinksql/FlinkSqlParserVisitor.d.ts +28 -0
  13. package/dist/lib/hive/HiveSqlLexer.d.ts +365 -351
  14. package/dist/lib/hive/HiveSqlLexer.js +2494 -2457
  15. package/dist/lib/hive/HiveSqlLexer.js.map +1 -1
  16. package/dist/lib/hive/{HiveSql.d.ts → HiveSqlParser.d.ts} +2791 -2463
  17. package/dist/lib/hive/{HiveSql.js → HiveSqlParser.js} +18554 -16800
  18. package/dist/lib/hive/HiveSqlParser.js.map +1 -0
  19. package/dist/lib/hive/{HiveSqlListener.d.ts → HiveSqlParserListener.d.ts} +1759 -1517
  20. package/dist/lib/hive/HiveSqlParserListener.js +3 -0
  21. package/dist/lib/hive/HiveSqlParserListener.js.map +1 -0
  22. package/dist/lib/hive/{HiveSqlVisitor.d.ts → HiveSqlParserVisitor.d.ts} +1165 -1011
  23. package/dist/lib/hive/HiveSqlParserVisitor.js +3 -0
  24. package/dist/lib/hive/HiveSqlParserVisitor.js.map +1 -0
  25. package/dist/lib/pgsql/PostgreSQLLexerBase.js +0 -4
  26. package/dist/lib/pgsql/PostgreSQLLexerBase.js.map +1 -1
  27. package/dist/lib/pgsql/PostgreSQLParserBase.js +0 -6
  28. package/dist/lib/pgsql/PostgreSQLParserBase.js.map +1 -1
  29. package/dist/lib/spark/SparkSqlLexer.d.ts +398 -322
  30. package/dist/lib/spark/SparkSqlLexer.js +2302 -1738
  31. package/dist/lib/spark/SparkSqlLexer.js.map +1 -1
  32. package/dist/lib/spark/SparkSqlParser.d.ts +3319 -3314
  33. package/dist/lib/spark/SparkSqlParser.js +18718 -16132
  34. package/dist/lib/spark/SparkSqlParser.js.map +1 -1
  35. package/dist/lib/spark/SparkSqlParserListener.d.ts +2130 -0
  36. package/dist/lib/spark/SparkSqlParserListener.js +3 -0
  37. package/dist/lib/spark/SparkSqlParserListener.js.map +1 -0
  38. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +1361 -0
  39. package/dist/lib/spark/SparkSqlParserVisitor.js +3 -0
  40. package/dist/lib/spark/SparkSqlParserVisitor.js.map +1 -0
  41. package/dist/parser/common/basic-parser-types.d.ts +16 -3
  42. package/dist/parser/common/basic-parser-types.js +12 -2
  43. package/dist/parser/common/basic-parser-types.js.map +1 -1
  44. package/dist/parser/common/basicParser.d.ts +27 -28
  45. package/dist/parser/common/basicParser.js +76 -60
  46. package/dist/parser/common/basicParser.js.map +1 -1
  47. package/dist/parser/common/parseErrorListener.d.ts +33 -0
  48. package/dist/parser/common/parseErrorListener.js +28 -0
  49. package/dist/parser/common/parseErrorListener.js.map +1 -0
  50. package/dist/parser/flinksql.d.ts +1 -1
  51. package/dist/parser/flinksql.js +32 -13
  52. package/dist/parser/flinksql.js.map +1 -1
  53. package/dist/parser/generic.js +1 -1
  54. package/dist/parser/generic.js.map +1 -1
  55. package/dist/parser/hive.d.ts +12 -5
  56. package/dist/parser/hive.js +91 -7
  57. package/dist/parser/hive.js.map +1 -1
  58. package/dist/parser/index.d.ts +1 -0
  59. package/dist/parser/index.js +1 -0
  60. package/dist/parser/index.js.map +1 -1
  61. package/dist/parser/pgsql.js +1 -1
  62. package/dist/parser/pgsql.js.map +1 -1
  63. package/dist/parser/plsql.js +1 -1
  64. package/dist/parser/plsql.js.map +1 -1
  65. package/dist/parser/spark.d.ts +10 -3
  66. package/dist/parser/spark.js +90 -7
  67. package/dist/parser/spark.js.map +1 -1
  68. package/dist/parser/trinosql.js +1 -1
  69. package/dist/parser/trinosql.js.map +1 -1
  70. package/dist/utils/findCaretTokenIndex.d.ts +2 -2
  71. package/dist/utils/findCaretTokenIndex.js +5 -4
  72. package/dist/utils/findCaretTokenIndex.js.map +1 -1
  73. package/dist/utils/index.d.ts +1 -1
  74. package/dist/utils/index.js +1 -5
  75. package/dist/utils/index.js.map +1 -1
  76. package/dist/utils/token.d.ts +2 -2
  77. package/dist/utils/token.js +2 -2
  78. package/dist/utils/token.js.map +1 -1
  79. package/package.json +16 -9
  80. package/dist/lib/hive/HiveSql.js.map +0 -1
  81. package/dist/lib/hive/HiveSqlListener.js +0 -3
  82. package/dist/lib/hive/HiveSqlListener.js.map +0 -1
  83. package/dist/lib/hive/HiveSqlVisitor.js +0 -3
  84. package/dist/lib/hive/HiveSqlVisitor.js.map +0 -1
  85. package/dist/lib/spark/SparkSqlListener.d.ts +0 -3516
  86. package/dist/lib/spark/SparkSqlListener.js +0 -3
  87. package/dist/lib/spark/SparkSqlListener.js.map +0 -1
  88. package/dist/lib/spark/SparkSqlVisitor.d.ts +0 -2201
  89. package/dist/lib/spark/SparkSqlVisitor.js +0 -3
  90. package/dist/lib/spark/SparkSqlVisitor.js.map +0 -1
  91. package/dist/parser/common/parserErrorListener.d.ts +0 -30
  92. package/dist/parser/common/parserErrorListener.js +0 -62
  93. package/dist/parser/common/parserErrorListener.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;
@@ -555,57 +556,61 @@ export declare class FlinkSqlParser extends Parser {
555
556
  static readonly RULE_likePredicate = 132;
556
557
  static readonly RULE_valueExpression = 133;
557
558
  static readonly RULE_primaryExpression = 134;
558
- static readonly RULE_functionName = 135;
559
- static readonly RULE_functionParam = 136;
560
- static readonly RULE_dereferenceDefinition = 137;
561
- static readonly RULE_correlationName = 138;
562
- static readonly RULE_qualifiedName = 139;
563
- static readonly RULE_timeIntervalExpression = 140;
564
- static readonly RULE_errorCapturingMultiUnitsInterval = 141;
565
- static readonly RULE_multiUnitsInterval = 142;
566
- static readonly RULE_errorCapturingUnitToUnitInterval = 143;
567
- static readonly RULE_unitToUnitInterval = 144;
568
- static readonly RULE_intervalValue = 145;
569
- static readonly RULE_columnAlias = 146;
570
- static readonly RULE_tableAlias = 147;
571
- static readonly RULE_errorCapturingIdentifier = 148;
572
- static readonly RULE_errorCapturingIdentifierExtra = 149;
573
- static readonly RULE_identifierList = 150;
574
- static readonly RULE_identifierSeq = 151;
575
- static readonly RULE_identifier = 152;
576
- static readonly RULE_unquotedIdentifier = 153;
577
- static readonly RULE_quotedIdentifier = 154;
578
- static readonly RULE_whenClause = 155;
579
- static readonly RULE_catalogPath = 156;
580
- static readonly RULE_databasePath = 157;
581
- static readonly RULE_databasePathCreate = 158;
582
- static readonly RULE_tablePathCreate = 159;
583
- static readonly RULE_tablePath = 160;
584
- static readonly RULE_uid = 161;
585
- static readonly RULE_withOption = 162;
586
- static readonly RULE_ifNotExists = 163;
587
- static readonly RULE_ifExists = 164;
588
- static readonly RULE_tablePropertyList = 165;
589
- static readonly RULE_tableProperty = 166;
590
- static readonly RULE_tablePropertyKey = 167;
591
- static readonly RULE_tablePropertyValue = 168;
592
- static readonly RULE_logicalOperator = 169;
593
- static readonly RULE_comparisonOperator = 170;
594
- static readonly RULE_bitOperator = 171;
595
- static readonly RULE_mathOperator = 172;
596
- static readonly RULE_unaryOperator = 173;
597
- static readonly RULE_constant = 174;
598
- static readonly RULE_timePointLiteral = 175;
599
- static readonly RULE_stringLiteral = 176;
600
- static readonly RULE_decimalLiteral = 177;
601
- static readonly RULE_booleanLiteral = 178;
602
- static readonly RULE_setQuantifier = 179;
603
- static readonly RULE_timePointUnit = 180;
604
- static readonly RULE_timeIntervalUnit = 181;
605
- static readonly RULE_reservedKeywordsUsedAsFuncParam = 182;
606
- static readonly RULE_reservedKeywordsUsedAsFuncName = 183;
607
- static readonly RULE_reservedKeywords = 184;
608
- static readonly RULE_nonReservedKeywords = 185;
559
+ static readonly RULE_functionNameCreate = 135;
560
+ static readonly RULE_functionName = 136;
561
+ static readonly RULE_functionParam = 137;
562
+ static readonly RULE_dereferenceDefinition = 138;
563
+ static readonly RULE_correlationName = 139;
564
+ static readonly RULE_qualifiedName = 140;
565
+ static readonly RULE_timeIntervalExpression = 141;
566
+ static readonly RULE_errorCapturingMultiUnitsInterval = 142;
567
+ static readonly RULE_multiUnitsInterval = 143;
568
+ static readonly RULE_errorCapturingUnitToUnitInterval = 144;
569
+ static readonly RULE_unitToUnitInterval = 145;
570
+ static readonly RULE_intervalValue = 146;
571
+ static readonly RULE_columnAlias = 147;
572
+ static readonly RULE_tableAlias = 148;
573
+ static readonly RULE_errorCapturingIdentifier = 149;
574
+ static readonly RULE_errorCapturingIdentifierExtra = 150;
575
+ static readonly RULE_identifierList = 151;
576
+ static readonly RULE_identifierSeq = 152;
577
+ static readonly RULE_identifier = 153;
578
+ static readonly RULE_unquotedIdentifier = 154;
579
+ static readonly RULE_quotedIdentifier = 155;
580
+ static readonly RULE_whenClause = 156;
581
+ static readonly RULE_catalogPath = 157;
582
+ static readonly RULE_catalogPathCreate = 158;
583
+ static readonly RULE_databasePath = 159;
584
+ static readonly RULE_databasePathCreate = 160;
585
+ static readonly RULE_tablePathCreate = 161;
586
+ static readonly RULE_tablePath = 162;
587
+ static readonly RULE_viewPath = 163;
588
+ static readonly RULE_viewPathCreate = 164;
589
+ static readonly RULE_uid = 165;
590
+ static readonly RULE_withOption = 166;
591
+ static readonly RULE_ifNotExists = 167;
592
+ static readonly RULE_ifExists = 168;
593
+ static readonly RULE_tablePropertyList = 169;
594
+ static readonly RULE_tableProperty = 170;
595
+ static readonly RULE_tablePropertyKey = 171;
596
+ static readonly RULE_tablePropertyValue = 172;
597
+ static readonly RULE_logicalOperator = 173;
598
+ static readonly RULE_comparisonOperator = 174;
599
+ static readonly RULE_bitOperator = 175;
600
+ static readonly RULE_mathOperator = 176;
601
+ static readonly RULE_unaryOperator = 177;
602
+ static readonly RULE_constant = 178;
603
+ static readonly RULE_timePointLiteral = 179;
604
+ static readonly RULE_stringLiteral = 180;
605
+ static readonly RULE_decimalLiteral = 181;
606
+ static readonly RULE_booleanLiteral = 182;
607
+ static readonly RULE_setQuantifier = 183;
608
+ static readonly RULE_timePointUnit = 184;
609
+ static readonly RULE_timeIntervalUnit = 185;
610
+ static readonly RULE_reservedKeywordsUsedAsFuncParam = 186;
611
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 187;
612
+ static readonly RULE_reservedKeywords = 188;
613
+ static readonly RULE_nonReservedKeywords = 189;
609
614
  static readonly ruleNames: string[];
610
615
  private static readonly _LITERAL_NAMES;
611
616
  private static readonly _SYMBOLIC_NAMES;
@@ -756,6 +761,7 @@ export declare class FlinkSqlParser extends Parser {
756
761
  valueExpression(_p: number): ValueExpressionContext;
757
762
  primaryExpression(): PrimaryExpressionContext;
758
763
  primaryExpression(_p: number): PrimaryExpressionContext;
764
+ functionNameCreate(): FunctionNameCreateContext;
759
765
  functionName(): FunctionNameContext;
760
766
  functionParam(): FunctionParamContext;
761
767
  dereferenceDefinition(): DereferenceDefinitionContext;
@@ -778,10 +784,13 @@ export declare class FlinkSqlParser extends Parser {
778
784
  quotedIdentifier(): QuotedIdentifierContext;
779
785
  whenClause(): WhenClauseContext;
780
786
  catalogPath(): CatalogPathContext;
787
+ catalogPathCreate(): CatalogPathCreateContext;
781
788
  databasePath(): DatabasePathContext;
782
789
  databasePathCreate(): DatabasePathCreateContext;
783
790
  tablePathCreate(): TablePathCreateContext;
784
791
  tablePath(): TablePathContext;
792
+ viewPath(): ViewPathContext;
793
+ viewPathCreate(): ViewPathCreateContext;
785
794
  uid(): UidContext;
786
795
  withOption(): WithOptionContext;
787
796
  ifNotExists(): IfNotExistsContext;
@@ -990,12 +999,13 @@ export declare class ShowStatememtContext extends ParserRuleContext {
990
999
  KW_CATALOG(): TerminalNode | undefined;
991
1000
  KW_DATABASE(): TerminalNode | undefined;
992
1001
  KW_TABLES(): TerminalNode | undefined;
993
- tablePath(): TablePathContext | undefined;
1002
+ databasePath(): DatabasePathContext | undefined;
994
1003
  likePredicate(): LikePredicateContext | undefined;
995
1004
  KW_FROM(): TerminalNode | undefined;
996
1005
  KW_IN(): TerminalNode | undefined;
997
1006
  KW_COLUMNS(): TerminalNode | undefined;
998
- uid(): UidContext | undefined;
1007
+ viewPath(): ViewPathContext | undefined;
1008
+ tablePath(): TablePathContext | undefined;
999
1009
  KW_CREATE(): TerminalNode | undefined;
1000
1010
  KW_TABLE(): TerminalNode | undefined;
1001
1011
  KW_VIEW(): TerminalNode | undefined;
@@ -1078,6 +1088,8 @@ export declare class DtAddStatementContext extends ParserRuleContext {
1078
1088
  KW_PYTHON_PARAMETER(): TerminalNode | undefined;
1079
1089
  KW_ENGINE(): TerminalNode | undefined;
1080
1090
  KW_KEY(): TerminalNode | undefined;
1091
+ KW_CONFIG(): TerminalNode | undefined;
1092
+ KW_FOR(): TerminalNode | undefined;
1081
1093
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1082
1094
  get ruleIndex(): number;
1083
1095
  enterRule(listener: FlinkSqlParserListener): void;
@@ -1499,7 +1511,7 @@ export declare class LikeOptionContext extends ParserRuleContext {
1499
1511
  export declare class CreateCatalogContext extends ParserRuleContext {
1500
1512
  KW_CREATE(): TerminalNode;
1501
1513
  KW_CATALOG(): TerminalNode;
1502
- uid(): UidContext;
1514
+ catalogPathCreate(): CatalogPathCreateContext;
1503
1515
  withOption(): WithOptionContext;
1504
1516
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
1505
1517
  get ruleIndex(): number;
@@ -1523,7 +1535,7 @@ export declare class CreateDatabaseContext extends ParserRuleContext {
1523
1535
  export declare class CreateViewContext extends ParserRuleContext {
1524
1536
  KW_CREATE(): TerminalNode;
1525
1537
  KW_VIEW(): TerminalNode;
1526
- uid(): UidContext;
1538
+ viewPathCreate(): ViewPathCreateContext;
1527
1539
  KW_AS(): TerminalNode;
1528
1540
  queryStatement(): QueryStatementContext;
1529
1541
  KW_TEMPORARY(): TerminalNode | undefined;
@@ -1539,7 +1551,7 @@ export declare class CreateViewContext extends ParserRuleContext {
1539
1551
  export declare class CreateFunctionContext extends ParserRuleContext {
1540
1552
  KW_CREATE(): TerminalNode;
1541
1553
  KW_FUNCTION(): TerminalNode;
1542
- functionName(): FunctionNameContext;
1554
+ functionNameCreate(): FunctionNameCreateContext;
1543
1555
  KW_AS(): TerminalNode;
1544
1556
  identifier(): IdentifierContext;
1545
1557
  KW_TEMPORARY(): TerminalNode | undefined;
@@ -1660,7 +1672,7 @@ export declare class NotForcedContext extends ParserRuleContext {
1660
1672
  export declare class AlertViewContext extends ParserRuleContext {
1661
1673
  KW_ALTER(): TerminalNode;
1662
1674
  KW_VIEW(): TerminalNode;
1663
- uid(): UidContext;
1675
+ viewPath(): ViewPathContext;
1664
1676
  renameDefinition(): RenameDefinitionContext | undefined;
1665
1677
  KW_AS(): TerminalNode | undefined;
1666
1678
  queryStatement(): QueryStatementContext | undefined;
@@ -1684,7 +1696,7 @@ export declare class AlterDatabaseContext extends ParserRuleContext {
1684
1696
  export declare class AlterFunctionContext extends ParserRuleContext {
1685
1697
  KW_ALTER(): TerminalNode;
1686
1698
  KW_FUNCTION(): TerminalNode;
1687
- uid(): UidContext;
1699
+ functionName(): FunctionNameContext;
1688
1700
  KW_AS(): TerminalNode;
1689
1701
  identifier(): IdentifierContext;
1690
1702
  KW_TEMPORARY(): TerminalNode | undefined;
@@ -1740,7 +1752,7 @@ export declare class DropDatabaseContext extends ParserRuleContext {
1740
1752
  export declare class DropViewContext extends ParserRuleContext {
1741
1753
  KW_DROP(): TerminalNode;
1742
1754
  KW_VIEW(): TerminalNode;
1743
- uid(): UidContext;
1755
+ viewPath(): ViewPathContext;
1744
1756
  KW_TEMPORARY(): TerminalNode | undefined;
1745
1757
  ifExists(): IfExistsContext | undefined;
1746
1758
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -2026,6 +2038,7 @@ export declare class TablePrimaryContext extends ParserRuleContext {
2026
2038
  systemTimePeriod(): SystemTimePeriodContext | undefined;
2027
2039
  correlationName(): CorrelationNameContext | undefined;
2028
2040
  KW_AS(): TerminalNode | undefined;
2041
+ viewPath(): ViewPathContext | undefined;
2029
2042
  KW_LATERAL(): TerminalNode | undefined;
2030
2043
  LR_BRACKET(): TerminalNode[];
2031
2044
  LR_BRACKET(i: number): TerminalNode;
@@ -2848,6 +2861,14 @@ export declare class ParenthesizedExpressionContext extends PrimaryExpressionCon
2848
2861
  exitRule(listener: FlinkSqlParserListener): void;
2849
2862
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
2850
2863
  }
2864
+ export declare class FunctionNameCreateContext extends ParserRuleContext {
2865
+ uid(): UidContext;
2866
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
2867
+ get ruleIndex(): number;
2868
+ enterRule(listener: FlinkSqlParserListener): void;
2869
+ exitRule(listener: FlinkSqlParserListener): void;
2870
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
2871
+ }
2851
2872
  export declare class FunctionNameContext extends ParserRuleContext {
2852
2873
  reservedKeywordsUsedAsFuncName(): ReservedKeywordsUsedAsFuncNameContext | undefined;
2853
2874
  nonReservedKeywords(): NonReservedKeywordsContext | undefined;
@@ -3091,7 +3112,15 @@ export declare class WhenClauseContext extends ParserRuleContext {
3091
3112
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3092
3113
  }
3093
3114
  export declare class CatalogPathContext extends ParserRuleContext {
3094
- uid(): UidContext;
3115
+ identifier(): IdentifierContext;
3116
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
3117
+ get ruleIndex(): number;
3118
+ enterRule(listener: FlinkSqlParserListener): void;
3119
+ exitRule(listener: FlinkSqlParserListener): void;
3120
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3121
+ }
3122
+ export declare class CatalogPathCreateContext extends ParserRuleContext {
3123
+ identifier(): IdentifierContext;
3095
3124
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
3096
3125
  get ruleIndex(): number;
3097
3126
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3099,7 +3128,9 @@ export declare class CatalogPathContext extends ParserRuleContext {
3099
3128
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3100
3129
  }
3101
3130
  export declare class DatabasePathContext extends ParserRuleContext {
3102
- uid(): UidContext;
3131
+ identifier(): IdentifierContext[];
3132
+ identifier(i: number): IdentifierContext;
3133
+ DOT(): TerminalNode | undefined;
3103
3134
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
3104
3135
  get ruleIndex(): number;
3105
3136
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3107,7 +3138,9 @@ export declare class DatabasePathContext extends ParserRuleContext {
3107
3138
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3108
3139
  }
3109
3140
  export declare class DatabasePathCreateContext extends ParserRuleContext {
3110
- uid(): UidContext;
3141
+ identifier(): IdentifierContext[];
3142
+ identifier(i: number): IdentifierContext;
3143
+ DOT(): TerminalNode | undefined;
3111
3144
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
3112
3145
  get ruleIndex(): number;
3113
3146
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3115,7 +3148,10 @@ export declare class DatabasePathCreateContext extends ParserRuleContext {
3115
3148
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3116
3149
  }
3117
3150
  export declare class TablePathCreateContext extends ParserRuleContext {
3118
- uid(): UidContext;
3151
+ identifier(): IdentifierContext[];
3152
+ identifier(i: number): IdentifierContext;
3153
+ DOT(): TerminalNode[];
3154
+ DOT(i: number): TerminalNode;
3119
3155
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
3120
3156
  get ruleIndex(): number;
3121
3157
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3123,7 +3159,32 @@ export declare class TablePathCreateContext extends ParserRuleContext {
3123
3159
  accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3124
3160
  }
3125
3161
  export declare class TablePathContext extends ParserRuleContext {
3126
- uid(): UidContext;
3162
+ identifier(): IdentifierContext[];
3163
+ identifier(i: number): IdentifierContext;
3164
+ DOT(): TerminalNode[];
3165
+ DOT(i: number): TerminalNode;
3166
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
3167
+ get ruleIndex(): number;
3168
+ enterRule(listener: FlinkSqlParserListener): void;
3169
+ exitRule(listener: FlinkSqlParserListener): void;
3170
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3171
+ }
3172
+ export declare class ViewPathContext extends ParserRuleContext {
3173
+ identifier(): IdentifierContext[];
3174
+ identifier(i: number): IdentifierContext;
3175
+ DOT(): TerminalNode[];
3176
+ DOT(i: number): TerminalNode;
3177
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
3178
+ get ruleIndex(): number;
3179
+ enterRule(listener: FlinkSqlParserListener): void;
3180
+ exitRule(listener: FlinkSqlParserListener): void;
3181
+ accept<Result>(visitor: FlinkSqlParserVisitor<Result>): Result;
3182
+ }
3183
+ export declare class ViewPathCreateContext extends ParserRuleContext {
3184
+ identifier(): IdentifierContext[];
3185
+ identifier(i: number): IdentifierContext;
3186
+ DOT(): TerminalNode[];
3187
+ DOT(i: number): TerminalNode;
3127
3188
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
3128
3189
  get ruleIndex(): number;
3129
3190
  enterRule(listener: FlinkSqlParserListener): void;
@@ -3420,6 +3481,8 @@ export declare class ReservedKeywordsUsedAsFuncNameContext extends ParserRuleCon
3420
3481
  KW_POSITION(): TerminalNode | undefined;
3421
3482
  KW_POWER(): TerminalNode | undefined;
3422
3483
  KW_QUARTER(): TerminalNode | undefined;
3484
+ KW_ROW(): TerminalNode | undefined;
3485
+ KW_ROWS(): TerminalNode | undefined;
3423
3486
  KW_RANK(): TerminalNode | undefined;
3424
3487
  KW_RIGHT(): TerminalNode | undefined;
3425
3488
  KW_SECOND(): TerminalNode | undefined;