dt-sql-parser 4.5.0-beta.2 → 4.5.0

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 (49) hide show
  1. package/README.md +2 -1
  2. package/dist/lib/SQLParserBase.d.ts +13 -1
  3. package/dist/lib/SQLParserBase.js +40 -5
  4. package/dist/lib/flink/FlinkSqlLexer.d.ts +399 -397
  5. package/dist/lib/flink/FlinkSqlLexer.js +2504 -2489
  6. package/dist/lib/flink/FlinkSqlParser.d.ts +773 -578
  7. package/dist/lib/flink/FlinkSqlParser.js +5657 -3651
  8. package/dist/lib/flink/FlinkSqlParserListener.d.ts +123 -0
  9. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +78 -0
  10. package/dist/lib/hive/HiveSqlParser.d.ts +274 -228
  11. package/dist/lib/hive/HiveSqlParser.js +6304 -5912
  12. package/dist/lib/hive/HiveSqlParserListener.d.ts +33 -0
  13. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +21 -0
  14. package/dist/lib/impala/ImpalaSqlParser.d.ts +145 -103
  15. package/dist/lib/impala/ImpalaSqlParser.js +3687 -3320
  16. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +33 -0
  17. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +21 -0
  18. package/dist/lib/mysql/MySqlParser.d.ts +161 -94
  19. package/dist/lib/mysql/MySqlParser.js +9959 -9499
  20. package/dist/lib/mysql/MySqlParserListener.d.ts +79 -5
  21. package/dist/lib/mysql/MySqlParserVisitor.d.ts +49 -3
  22. package/dist/lib/postgresql/PostgreSqlParser.d.ts +108 -71
  23. package/dist/lib/postgresql/PostgreSqlParser.js +13330 -10388
  24. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +48 -0
  25. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +30 -0
  26. package/dist/lib/spark/SparkSqlParser.d.ts +186 -146
  27. package/dist/lib/spark/SparkSqlParser.js +5368 -5095
  28. package/dist/lib/spark/SparkSqlParserListener.d.ts +33 -0
  29. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +21 -0
  30. package/dist/lib/trino/TrinoSqlLexer.d.ts +297 -296
  31. package/dist/lib/trino/TrinoSqlLexer.js +1451 -1445
  32. package/dist/lib/trino/TrinoSqlListener.d.ts +13 -0
  33. package/dist/lib/trino/TrinoSqlParser.d.ts +308 -297
  34. package/dist/lib/trino/TrinoSqlParser.js +2381 -2300
  35. package/dist/lib/trino/TrinoSqlVisitor.d.ts +8 -0
  36. package/dist/parser/common/basicSQL.d.ts +17 -5
  37. package/dist/parser/common/basicSQL.js +74 -3
  38. package/dist/parser/common/entityCollector.js +14 -2
  39. package/dist/parser/flink/index.js +5 -2
  40. package/dist/parser/generic/genericEntityCollector.d.ts +1 -0
  41. package/dist/parser/generic/genericEntityCollector.js +14 -1
  42. package/dist/parser/mysql/index.js +3 -1
  43. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  44. package/dist/parser/mysql/mysqlEntityCollector.js +13 -3
  45. package/dist/parser/mysql/mysqlErrorListener.js +2 -0
  46. package/dist/parser/postgresql/postgreEntityCollector.d.ts +3 -1
  47. package/dist/parser/postgresql/postgreEntityCollector.js +13 -0
  48. package/dist/parser/spark/index.js +3 -1
  49. package/package.json +1 -1
@@ -95,8 +95,10 @@ import { DatabaseNamePathContext } from "./ImpalaSqlParser.js";
95
95
  import { TableNamePathContext } from "./ImpalaSqlParser.js";
96
96
  import { ViewNamePathContext } from "./ImpalaSqlParser.js";
97
97
  import { FunctionNamePathContext } from "./ImpalaSqlParser.js";
98
+ import { EmptyColumnContext } from "./ImpalaSqlParser.js";
98
99
  import { ColumnNamePathContext } from "./ImpalaSqlParser.js";
99
100
  import { ColumnNameContext } from "./ImpalaSqlParser.js";
101
+ import { ColumnNameAllowEmptyContext } from "./ImpalaSqlParser.js";
100
102
  import { TableOrViewPathContext } from "./ImpalaSqlParser.js";
101
103
  import { CreateCommonItemContext } from "./ImpalaSqlParser.js";
102
104
  import { AssignmentListContext } from "./ImpalaSqlParser.js";
@@ -240,6 +242,7 @@ import { PathSpecificationContext } from "./ImpalaSqlParser.js";
240
242
  import { PrivilegeContext } from "./ImpalaSqlParser.js";
241
243
  import { ObjectTypeContext } from "./ImpalaSqlParser.js";
242
244
  import { QualifiedNameContext } from "./ImpalaSqlParser.js";
245
+ import { QualifiedNameAllowEmptyContext } from "./ImpalaSqlParser.js";
243
246
  import { RolePrincipalContext } from "./ImpalaSqlParser.js";
244
247
  import { UserPrincipalContext } from "./ImpalaSqlParser.js";
245
248
  import { GroupPrincipalContext } from "./ImpalaSqlParser.js";
@@ -1217,6 +1220,16 @@ export declare class ImpalaSqlParserListener implements ParseTreeListener {
1217
1220
  * @param ctx the parse tree
1218
1221
  */
1219
1222
  exitFunctionNamePath?: (ctx: FunctionNamePathContext) => void;
1223
+ /**
1224
+ * Enter a parse tree produced by `ImpalaSqlParser.emptyColumn`.
1225
+ * @param ctx the parse tree
1226
+ */
1227
+ enterEmptyColumn?: (ctx: EmptyColumnContext) => void;
1228
+ /**
1229
+ * Exit a parse tree produced by `ImpalaSqlParser.emptyColumn`.
1230
+ * @param ctx the parse tree
1231
+ */
1232
+ exitEmptyColumn?: (ctx: EmptyColumnContext) => void;
1220
1233
  /**
1221
1234
  * Enter a parse tree produced by `ImpalaSqlParser.columnNamePath`.
1222
1235
  * @param ctx the parse tree
@@ -1237,6 +1250,16 @@ export declare class ImpalaSqlParserListener implements ParseTreeListener {
1237
1250
  * @param ctx the parse tree
1238
1251
  */
1239
1252
  exitColumnName?: (ctx: ColumnNameContext) => void;
1253
+ /**
1254
+ * Enter a parse tree produced by `ImpalaSqlParser.columnNameAllowEmpty`.
1255
+ * @param ctx the parse tree
1256
+ */
1257
+ enterColumnNameAllowEmpty?: (ctx: ColumnNameAllowEmptyContext) => void;
1258
+ /**
1259
+ * Exit a parse tree produced by `ImpalaSqlParser.columnNameAllowEmpty`.
1260
+ * @param ctx the parse tree
1261
+ */
1262
+ exitColumnNameAllowEmpty?: (ctx: ColumnNameAllowEmptyContext) => void;
1240
1263
  /**
1241
1264
  * Enter a parse tree produced by `ImpalaSqlParser.tableOrViewPath`.
1242
1265
  * @param ctx the parse tree
@@ -2789,6 +2812,16 @@ export declare class ImpalaSqlParserListener implements ParseTreeListener {
2789
2812
  * @param ctx the parse tree
2790
2813
  */
2791
2814
  exitQualifiedName?: (ctx: QualifiedNameContext) => void;
2815
+ /**
2816
+ * Enter a parse tree produced by `ImpalaSqlParser.qualifiedNameAllowEmpty`.
2817
+ * @param ctx the parse tree
2818
+ */
2819
+ enterQualifiedNameAllowEmpty?: (ctx: QualifiedNameAllowEmptyContext) => void;
2820
+ /**
2821
+ * Exit a parse tree produced by `ImpalaSqlParser.qualifiedNameAllowEmpty`.
2822
+ * @param ctx the parse tree
2823
+ */
2824
+ exitQualifiedNameAllowEmpty?: (ctx: QualifiedNameAllowEmptyContext) => void;
2792
2825
  /**
2793
2826
  * Enter a parse tree produced by the `rolePrincipal`
2794
2827
  * labeled alternative in `ImpalaSqlParser.principal`.
@@ -95,8 +95,10 @@ import { DatabaseNamePathContext } from "./ImpalaSqlParser.js";
95
95
  import { TableNamePathContext } from "./ImpalaSqlParser.js";
96
96
  import { ViewNamePathContext } from "./ImpalaSqlParser.js";
97
97
  import { FunctionNamePathContext } from "./ImpalaSqlParser.js";
98
+ import { EmptyColumnContext } from "./ImpalaSqlParser.js";
98
99
  import { ColumnNamePathContext } from "./ImpalaSqlParser.js";
99
100
  import { ColumnNameContext } from "./ImpalaSqlParser.js";
101
+ import { ColumnNameAllowEmptyContext } from "./ImpalaSqlParser.js";
100
102
  import { TableOrViewPathContext } from "./ImpalaSqlParser.js";
101
103
  import { CreateCommonItemContext } from "./ImpalaSqlParser.js";
102
104
  import { AssignmentListContext } from "./ImpalaSqlParser.js";
@@ -240,6 +242,7 @@ import { PathSpecificationContext } from "./ImpalaSqlParser.js";
240
242
  import { PrivilegeContext } from "./ImpalaSqlParser.js";
241
243
  import { ObjectTypeContext } from "./ImpalaSqlParser.js";
242
244
  import { QualifiedNameContext } from "./ImpalaSqlParser.js";
245
+ import { QualifiedNameAllowEmptyContext } from "./ImpalaSqlParser.js";
243
246
  import { RolePrincipalContext } from "./ImpalaSqlParser.js";
244
247
  import { UserPrincipalContext } from "./ImpalaSqlParser.js";
245
248
  import { GroupPrincipalContext } from "./ImpalaSqlParser.js";
@@ -836,6 +839,12 @@ export declare class ImpalaSqlParserVisitor<Result> extends AbstractParseTreeVis
836
839
  * @return the visitor result
837
840
  */
838
841
  visitFunctionNamePath?: (ctx: FunctionNamePathContext) => Result;
842
+ /**
843
+ * Visit a parse tree produced by `ImpalaSqlParser.emptyColumn`.
844
+ * @param ctx the parse tree
845
+ * @return the visitor result
846
+ */
847
+ visitEmptyColumn?: (ctx: EmptyColumnContext) => Result;
839
848
  /**
840
849
  * Visit a parse tree produced by `ImpalaSqlParser.columnNamePath`.
841
850
  * @param ctx the parse tree
@@ -848,6 +857,12 @@ export declare class ImpalaSqlParserVisitor<Result> extends AbstractParseTreeVis
848
857
  * @return the visitor result
849
858
  */
850
859
  visitColumnName?: (ctx: ColumnNameContext) => Result;
860
+ /**
861
+ * Visit a parse tree produced by `ImpalaSqlParser.columnNameAllowEmpty`.
862
+ * @param ctx the parse tree
863
+ * @return the visitor result
864
+ */
865
+ visitColumnNameAllowEmpty?: (ctx: ColumnNameAllowEmptyContext) => Result;
851
866
  /**
852
867
  * Visit a parse tree produced by `ImpalaSqlParser.tableOrViewPath`.
853
868
  * @param ctx the parse tree
@@ -1767,6 +1782,12 @@ export declare class ImpalaSqlParserVisitor<Result> extends AbstractParseTreeVis
1767
1782
  * @return the visitor result
1768
1783
  */
1769
1784
  visitQualifiedName?: (ctx: QualifiedNameContext) => Result;
1785
+ /**
1786
+ * Visit a parse tree produced by `ImpalaSqlParser.qualifiedNameAllowEmpty`.
1787
+ * @param ctx the parse tree
1788
+ * @return the visitor result
1789
+ */
1790
+ visitQualifiedNameAllowEmpty?: (ctx: QualifiedNameAllowEmptyContext) => Result;
1770
1791
  /**
1771
1792
  * Visit a parse tree produced by the `rolePrincipal`
1772
1793
  * labeled alternative in `ImpalaSqlParser.principal`.
@@ -1235,94 +1235,97 @@ export declare class MySqlParser extends SQLParserBase {
1235
1235
  static readonly RULE_userOrRoleName = 333;
1236
1236
  static readonly RULE_columnNameCreate = 334;
1237
1237
  static readonly RULE_columnNames = 335;
1238
- static readonly RULE_columnName = 336;
1239
- static readonly RULE_tableSpaceNameCreate = 337;
1240
- static readonly RULE_tableSpaceName = 338;
1241
- static readonly RULE_partitionNameCreate = 339;
1242
- static readonly RULE_partitionNames = 340;
1243
- static readonly RULE_partitionName = 341;
1244
- static readonly RULE_indexColumnName = 342;
1245
- static readonly RULE_userHostPort = 343;
1246
- static readonly RULE_userAtHost = 344;
1247
- static readonly RULE_simpleUserName = 345;
1248
- static readonly RULE_hostName = 346;
1249
- static readonly RULE_userName = 347;
1250
- static readonly RULE_mysqlVariable = 348;
1251
- static readonly RULE_charsetName = 349;
1252
- static readonly RULE_collationName = 350;
1253
- static readonly RULE_engineName = 351;
1254
- static readonly RULE_engineNameBase = 352;
1255
- static readonly RULE_uuidSet = 353;
1256
- static readonly RULE_xid = 354;
1257
- static readonly RULE_xuidStringId = 355;
1258
- static readonly RULE_fullId = 356;
1259
- static readonly RULE_uidList = 357;
1260
- static readonly RULE_uid = 358;
1261
- static readonly RULE_simpleId = 359;
1262
- static readonly RULE_dottedId = 360;
1263
- static readonly RULE_decimalLiteral = 361;
1264
- static readonly RULE_fileSizeLiteral = 362;
1265
- static readonly RULE_stringLiteral = 363;
1266
- static readonly RULE_booleanLiteral = 364;
1267
- static readonly RULE_hexadecimalLiteral = 365;
1268
- static readonly RULE_nullNotNull = 366;
1269
- static readonly RULE_constant = 367;
1270
- static readonly RULE_dataType = 368;
1271
- static readonly RULE_collectionOptions = 369;
1272
- static readonly RULE_convertedDataType = 370;
1273
- static readonly RULE_lengthOneDimension = 371;
1274
- static readonly RULE_lengthTwoDimension = 372;
1275
- static readonly RULE_lengthTwoOptionalDimension = 373;
1276
- static readonly RULE_indexColumnNames = 374;
1277
- static readonly RULE_expressions = 375;
1278
- static readonly RULE_valuesOrValueList = 376;
1279
- static readonly RULE_expressionsWithDefaults = 377;
1280
- static readonly RULE_expressionOrDefault = 378;
1281
- static readonly RULE_constants = 379;
1282
- static readonly RULE_simpleStrings = 380;
1283
- static readonly RULE_userVariables = 381;
1284
- static readonly RULE_defaultValue = 382;
1285
- static readonly RULE_currentTimestamp = 383;
1286
- static readonly RULE_ifExists = 384;
1287
- static readonly RULE_ifNotExists = 385;
1288
- static readonly RULE_orReplace = 386;
1289
- static readonly RULE_functionCall = 387;
1290
- static readonly RULE_specificFunction = 388;
1291
- static readonly RULE_caseFuncAlternative = 389;
1292
- static readonly RULE_levelsInWeightString = 390;
1293
- static readonly RULE_levelInWeightListElement = 391;
1294
- static readonly RULE_aggregateWindowedFunction = 392;
1295
- static readonly RULE_nonAggregateWindowedFunction = 393;
1296
- static readonly RULE_overClause = 394;
1297
- static readonly RULE_windowSpec = 395;
1298
- static readonly RULE_windowName = 396;
1299
- static readonly RULE_frameClause = 397;
1300
- static readonly RULE_frameUnits = 398;
1301
- static readonly RULE_frameExtent = 399;
1302
- static readonly RULE_frameBetween = 400;
1303
- static readonly RULE_frameRange = 401;
1304
- static readonly RULE_partitionClause = 402;
1305
- static readonly RULE_scalarFunctionName = 403;
1306
- static readonly RULE_passwordFunctionClause = 404;
1307
- static readonly RULE_functionArgs = 405;
1308
- static readonly RULE_functionArg = 406;
1309
- static readonly RULE_expression = 407;
1310
- static readonly RULE_predicate = 408;
1311
- static readonly RULE_expressionAtom = 409;
1312
- static readonly RULE_unaryOperator = 410;
1313
- static readonly RULE_comparisonOperator = 411;
1314
- static readonly RULE_comparisonBase = 412;
1315
- static readonly RULE_logicalOperator = 413;
1316
- static readonly RULE_bitOperator = 414;
1317
- static readonly RULE_mathOperator = 415;
1318
- static readonly RULE_jsonOperator = 416;
1319
- static readonly RULE_charsetNameBase = 417;
1320
- static readonly RULE_transactionLevelBase = 418;
1321
- static readonly RULE_privilegesBase = 419;
1322
- static readonly RULE_intervalTypeBase = 420;
1323
- static readonly RULE_dataTypeBase = 421;
1324
- static readonly RULE_keywordsCanBeId = 422;
1325
- static readonly RULE_functionNameBase = 423;
1238
+ static readonly RULE_emptyColumn = 336;
1239
+ static readonly RULE_columnName = 337;
1240
+ static readonly RULE_columnNamePath = 338;
1241
+ static readonly RULE_columnNamePathAllowEmpty = 339;
1242
+ static readonly RULE_tableSpaceNameCreate = 340;
1243
+ static readonly RULE_tableSpaceName = 341;
1244
+ static readonly RULE_partitionNameCreate = 342;
1245
+ static readonly RULE_partitionNames = 343;
1246
+ static readonly RULE_partitionName = 344;
1247
+ static readonly RULE_indexColumnName = 345;
1248
+ static readonly RULE_userHostPort = 346;
1249
+ static readonly RULE_userAtHost = 347;
1250
+ static readonly RULE_simpleUserName = 348;
1251
+ static readonly RULE_hostName = 349;
1252
+ static readonly RULE_userName = 350;
1253
+ static readonly RULE_mysqlVariable = 351;
1254
+ static readonly RULE_charsetName = 352;
1255
+ static readonly RULE_collationName = 353;
1256
+ static readonly RULE_engineName = 354;
1257
+ static readonly RULE_engineNameBase = 355;
1258
+ static readonly RULE_uuidSet = 356;
1259
+ static readonly RULE_xid = 357;
1260
+ static readonly RULE_xuidStringId = 358;
1261
+ static readonly RULE_fullId = 359;
1262
+ static readonly RULE_uidList = 360;
1263
+ static readonly RULE_uid = 361;
1264
+ static readonly RULE_simpleId = 362;
1265
+ static readonly RULE_dottedId = 363;
1266
+ static readonly RULE_decimalLiteral = 364;
1267
+ static readonly RULE_fileSizeLiteral = 365;
1268
+ static readonly RULE_stringLiteral = 366;
1269
+ static readonly RULE_booleanLiteral = 367;
1270
+ static readonly RULE_hexadecimalLiteral = 368;
1271
+ static readonly RULE_nullNotNull = 369;
1272
+ static readonly RULE_constant = 370;
1273
+ static readonly RULE_dataType = 371;
1274
+ static readonly RULE_collectionOptions = 372;
1275
+ static readonly RULE_convertedDataType = 373;
1276
+ static readonly RULE_lengthOneDimension = 374;
1277
+ static readonly RULE_lengthTwoDimension = 375;
1278
+ static readonly RULE_lengthTwoOptionalDimension = 376;
1279
+ static readonly RULE_indexColumnNames = 377;
1280
+ static readonly RULE_expressions = 378;
1281
+ static readonly RULE_valuesOrValueList = 379;
1282
+ static readonly RULE_expressionsWithDefaults = 380;
1283
+ static readonly RULE_expressionOrDefault = 381;
1284
+ static readonly RULE_constants = 382;
1285
+ static readonly RULE_simpleStrings = 383;
1286
+ static readonly RULE_userVariables = 384;
1287
+ static readonly RULE_defaultValue = 385;
1288
+ static readonly RULE_currentTimestamp = 386;
1289
+ static readonly RULE_ifExists = 387;
1290
+ static readonly RULE_ifNotExists = 388;
1291
+ static readonly RULE_orReplace = 389;
1292
+ static readonly RULE_functionCall = 390;
1293
+ static readonly RULE_specificFunction = 391;
1294
+ static readonly RULE_caseFuncAlternative = 392;
1295
+ static readonly RULE_levelsInWeightString = 393;
1296
+ static readonly RULE_levelInWeightListElement = 394;
1297
+ static readonly RULE_aggregateWindowedFunction = 395;
1298
+ static readonly RULE_nonAggregateWindowedFunction = 396;
1299
+ static readonly RULE_overClause = 397;
1300
+ static readonly RULE_windowSpec = 398;
1301
+ static readonly RULE_windowName = 399;
1302
+ static readonly RULE_frameClause = 400;
1303
+ static readonly RULE_frameUnits = 401;
1304
+ static readonly RULE_frameExtent = 402;
1305
+ static readonly RULE_frameBetween = 403;
1306
+ static readonly RULE_frameRange = 404;
1307
+ static readonly RULE_partitionClause = 405;
1308
+ static readonly RULE_scalarFunctionName = 406;
1309
+ static readonly RULE_passwordFunctionClause = 407;
1310
+ static readonly RULE_functionArgs = 408;
1311
+ static readonly RULE_functionArg = 409;
1312
+ static readonly RULE_expression = 410;
1313
+ static readonly RULE_predicate = 411;
1314
+ static readonly RULE_expressionAtom = 412;
1315
+ static readonly RULE_unaryOperator = 413;
1316
+ static readonly RULE_comparisonOperator = 414;
1317
+ static readonly RULE_comparisonBase = 415;
1318
+ static readonly RULE_logicalOperator = 416;
1319
+ static readonly RULE_bitOperator = 417;
1320
+ static readonly RULE_mathOperator = 418;
1321
+ static readonly RULE_jsonOperator = 419;
1322
+ static readonly RULE_charsetNameBase = 420;
1323
+ static readonly RULE_transactionLevelBase = 421;
1324
+ static readonly RULE_privilegesBase = 422;
1325
+ static readonly RULE_intervalTypeBase = 423;
1326
+ static readonly RULE_dataTypeBase = 424;
1327
+ static readonly RULE_keywordsCanBeId = 425;
1328
+ static readonly RULE_functionNameBase = 426;
1326
1329
  static readonly literalNames: (string | null)[];
1327
1330
  static readonly symbolicNames: (string | null)[];
1328
1331
  static readonly ruleNames: string[];
@@ -1671,7 +1674,10 @@ export declare class MySqlParser extends SQLParserBase {
1671
1674
  userOrRoleName(): UserOrRoleNameContext;
1672
1675
  columnNameCreate(): ColumnNameCreateContext;
1673
1676
  columnNames(): ColumnNamesContext;
1677
+ emptyColumn(): EmptyColumnContext;
1674
1678
  columnName(): ColumnNameContext;
1679
+ columnNamePath(): ColumnNamePathContext;
1680
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext;
1675
1681
  tableSpaceNameCreate(): TableSpaceNameCreateContext;
1676
1682
  tableSpaceName(): TableSpaceNameContext;
1677
1683
  partitionNameCreate(): PartitionNameCreateContext;
@@ -1765,7 +1771,9 @@ export declare class MySqlParser extends SQLParserBase {
1765
1771
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
1766
1772
  private queryExpressionBody_sempred;
1767
1773
  private queryItem_sempred;
1774
+ private selectElement_sempred;
1768
1775
  private columnName_sempred;
1776
+ private columnNamePathAllowEmpty_sempred;
1769
1777
  private expression_sempred;
1770
1778
  private predicate_sempred;
1771
1779
  private expressionAtom_sempred;
@@ -5577,6 +5585,7 @@ export declare class JoinSpecContext extends antlr.ParserRuleContext {
5577
5585
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5578
5586
  KW_ON(): antlr.TerminalNode | null;
5579
5587
  expression(): ExpressionContext | null;
5588
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext | null;
5580
5589
  KW_USING(): antlr.TerminalNode | null;
5581
5590
  LR_BRACKET(): antlr.TerminalNode | null;
5582
5591
  columnNames(): ColumnNamesContext | null;
@@ -5754,14 +5763,42 @@ export declare class SelectElementsContext extends antlr.ParserRuleContext {
5754
5763
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5755
5764
  }
5756
5765
  export declare class SelectElementContext extends antlr.ParserRuleContext {
5757
- _alias?: UidContext;
5758
5766
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
5759
- tableAllColumns(): TableAllColumnsContext | null;
5760
- selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
5767
+ get ruleIndex(): number;
5768
+ copyFrom(ctx: SelectElementContext): void;
5769
+ }
5770
+ export declare class SelectElement_exprContext extends SelectElementContext {
5771
+ _alias?: UidContext;
5772
+ constructor(ctx: SelectElementContext);
5773
+ selectExpressionColumnName(): SelectExpressionColumnNameContext;
5761
5774
  uid(): UidContext | null;
5762
5775
  KW_AS(): antlr.TerminalNode | null;
5763
- selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
5764
- get ruleIndex(): number;
5776
+ enterRule(listener: MySqlParserListener): void;
5777
+ exitRule(listener: MySqlParserListener): void;
5778
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5779
+ }
5780
+ export declare class SelectElement_labelContext extends SelectElementContext {
5781
+ _alias?: UidContext;
5782
+ constructor(ctx: SelectElementContext);
5783
+ selectLiteralColumnName(): SelectLiteralColumnNameContext;
5784
+ uid(): UidContext | null;
5785
+ KW_AS(): antlr.TerminalNode | null;
5786
+ enterRule(listener: MySqlParserListener): void;
5787
+ exitRule(listener: MySqlParserListener): void;
5788
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5789
+ }
5790
+ export declare class SelectElement_dot_emptyContext extends SelectElementContext {
5791
+ constructor(ctx: SelectElementContext);
5792
+ uid(): UidContext;
5793
+ DOT(): antlr.TerminalNode;
5794
+ emptyColumn(): EmptyColumnContext;
5795
+ enterRule(listener: MySqlParserListener): void;
5796
+ exitRule(listener: MySqlParserListener): void;
5797
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
5798
+ }
5799
+ export declare class SelectElement_starContext extends SelectElementContext {
5800
+ constructor(ctx: SelectElementContext);
5801
+ tableAllColumns(): TableAllColumnsContext;
5765
5802
  enterRule(listener: MySqlParserListener): void;
5766
5803
  exitRule(listener: MySqlParserListener): void;
5767
5804
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
@@ -5895,6 +5932,7 @@ export declare class FromClauseContext extends antlr.ParserRuleContext {
5895
5932
  KW_FROM(): antlr.TerminalNode | null;
5896
5933
  tableSources(): TableSourcesContext | null;
5897
5934
  KW_WHERE(): antlr.TerminalNode | null;
5935
+ columnNamePathAllowEmpty(): ColumnNamePathAllowEmptyContext | null;
5898
5936
  expression(): ExpressionContext | null;
5899
5937
  get ruleIndex(): number;
5900
5938
  enterRule(listener: MySqlParserListener): void;
@@ -9358,11 +9396,40 @@ export declare class ColumnNamesContext extends antlr.ParserRuleContext {
9358
9396
  exitRule(listener: MySqlParserListener): void;
9359
9397
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
9360
9398
  }
9399
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
9400
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
9401
+ get ruleIndex(): number;
9402
+ enterRule(listener: MySqlParserListener): void;
9403
+ exitRule(listener: MySqlParserListener): void;
9404
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
9405
+ }
9361
9406
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
9362
9407
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
9363
9408
  uid(): UidContext | null;
9364
9409
  dottedId(): DottedIdContext[];
9365
9410
  dottedId(i: number): DottedIdContext | null;
9411
+ emptyColumn(): EmptyColumnContext | null;
9412
+ get ruleIndex(): number;
9413
+ enterRule(listener: MySqlParserListener): void;
9414
+ exitRule(listener: MySqlParserListener): void;
9415
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
9416
+ }
9417
+ export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
9418
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
9419
+ uid(): UidContext | null;
9420
+ dottedId(): DottedIdContext[];
9421
+ dottedId(i: number): DottedIdContext | null;
9422
+ get ruleIndex(): number;
9423
+ enterRule(listener: MySqlParserListener): void;
9424
+ exitRule(listener: MySqlParserListener): void;
9425
+ accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;
9426
+ }
9427
+ export declare class ColumnNamePathAllowEmptyContext extends antlr.ParserRuleContext {
9428
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
9429
+ emptyColumn(): EmptyColumnContext | null;
9430
+ uid(): UidContext | null;
9431
+ dottedId(): DottedIdContext[];
9432
+ dottedId(i: number): DottedIdContext | null;
9366
9433
  get ruleIndex(): number;
9367
9434
  enterRule(listener: MySqlParserListener): void;
9368
9435
  exitRule(listener: MySqlParserListener): void;
@@ -10839,7 +10906,7 @@ export declare class CollateExpressionAtomContext extends ExpressionAtomContext
10839
10906
  }
10840
10907
  export declare class ColumnNameExpressionAtomContext extends ExpressionAtomContext {
10841
10908
  constructor(ctx: ExpressionAtomContext);
10842
- columnName(): ColumnNameContext;
10909
+ columnNamePath(): ColumnNamePathContext;
10843
10910
  enterRule(listener: MySqlParserListener): void;
10844
10911
  exitRule(listener: MySqlParserListener): void;
10845
10912
  accept<Result>(visitor: MySqlParserVisitor<Result>): Result | null;