dt-sql-parser 4.4.0-beta.0 → 4.5.0-beta.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.
- package/README.md +140 -3
- package/dist/lib/flink/FlinkSqlParser.d.ts +221 -114
- package/dist/lib/flink/FlinkSqlParser.js +3608 -2907
- package/dist/lib/flink/FlinkSqlParserListener.d.ts +99 -0
- package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +63 -0
- package/dist/lib/hive/HiveSqlParser.d.ts +169 -116
- package/dist/lib/hive/HiveSqlParser.js +5708 -5428
- package/dist/lib/hive/HiveSqlParserListener.d.ts +55 -0
- package/dist/lib/hive/HiveSqlParserVisitor.d.ts +35 -0
- package/dist/lib/impala/ImpalaSqlParser.d.ts +150 -81
- package/dist/lib/impala/ImpalaSqlParser.js +3730 -3323
- package/dist/lib/impala/ImpalaSqlParserListener.d.ts +76 -14
- package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +48 -8
- package/dist/lib/mysql/MySqlParser.d.ts +346 -316
- package/dist/lib/mysql/MySqlParser.js +10224 -10020
- package/dist/lib/mysql/MySqlParserListener.d.ts +55 -26
- package/dist/lib/mysql/MySqlParserVisitor.d.ts +33 -14
- package/dist/lib/postgresql/PostgreSqlParser.d.ts +215 -169
- package/dist/lib/postgresql/PostgreSqlParser.js +10333 -10051
- package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +51 -7
- package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +32 -4
- package/dist/lib/spark/SparkSqlParser.d.ts +215 -90
- package/dist/lib/spark/SparkSqlParser.js +5143 -4496
- package/dist/lib/spark/SparkSqlParserListener.d.ts +147 -5
- package/dist/lib/spark/SparkSqlParserVisitor.d.ts +92 -3
- package/dist/lib/trino/TrinoSqlListener.d.ts +90 -37
- package/dist/lib/trino/TrinoSqlParser.d.ts +219 -165
- package/dist/lib/trino/TrinoSqlParser.js +4942 -4615
- package/dist/lib/trino/TrinoSqlVisitor.d.ts +55 -21
- package/dist/parser/common/basicSQL.js +2 -0
- package/dist/parser/common/entityCollector.d.ts +91 -4
- package/dist/parser/common/entityCollector.js +215 -11
- package/dist/parser/common/textAndWord.d.ts +9 -1
- package/dist/parser/common/textAndWord.js +2 -0
- package/dist/parser/common/types.d.ts +2 -0
- package/dist/parser/common/types.js +2 -0
- package/dist/parser/flink/flinkEntityCollector.d.ts +10 -2
- package/dist/parser/flink/flinkEntityCollector.js +76 -14
- package/dist/parser/hive/hiveEntityCollector.d.ts +13 -1
- package/dist/parser/hive/hiveEntityCollector.js +85 -12
- package/dist/parser/impala/impalaEntityCollector.d.ts +7 -1
- package/dist/parser/impala/impalaEntityCollector.js +63 -12
- package/dist/parser/impala/index.js +2 -1
- package/dist/parser/mysql/mysqlEntityCollector.d.ts +9 -1
- package/dist/parser/mysql/mysqlEntityCollector.js +55 -12
- package/dist/parser/postgresql/postgreEntityCollector.d.ts +10 -1
- package/dist/parser/postgresql/postgreEntityCollector.js +86 -22
- package/dist/parser/spark/sparkEntityCollector.d.ts +13 -1
- package/dist/parser/spark/sparkEntityCollector.js +88 -12
- package/dist/parser/trino/index.js +2 -1
- package/dist/parser/trino/trinoEntityCollector.d.ts +7 -1
- package/dist/parser/trino/trinoEntityCollector.js +53 -12
- package/package.json +1 -1
|
@@ -87,12 +87,21 @@ import { WithItemContext } from "./FlinkSqlParser.js";
|
|
|
87
87
|
import { WithItemNameContext } from "./FlinkSqlParser.js";
|
|
88
88
|
import { SelectStatementContext } from "./FlinkSqlParser.js";
|
|
89
89
|
import { SelectClauseContext } from "./FlinkSqlParser.js";
|
|
90
|
+
import { SelectListContext } from "./FlinkSqlParser.js";
|
|
91
|
+
import { ColumnProjectItemContext } from "./FlinkSqlParser.js";
|
|
92
|
+
import { SelectWindowItemColumnNameContext } from "./FlinkSqlParser.js";
|
|
93
|
+
import { SelectExpressionColumnNameContext } from "./FlinkSqlParser.js";
|
|
94
|
+
import { SelectLiteralColumnNameContext } from "./FlinkSqlParser.js";
|
|
95
|
+
import { ColumnAliasContext } from "./FlinkSqlParser.js";
|
|
90
96
|
import { ProjectItemDefinitionContext } from "./FlinkSqlParser.js";
|
|
97
|
+
import { TableAllColumnsContext } from "./FlinkSqlParser.js";
|
|
91
98
|
import { OverWindowItemContext } from "./FlinkSqlParser.js";
|
|
92
99
|
import { FromClauseContext } from "./FlinkSqlParser.js";
|
|
93
100
|
import { TableExpressionContext } from "./FlinkSqlParser.js";
|
|
94
101
|
import { TableReferenceContext } from "./FlinkSqlParser.js";
|
|
95
102
|
import { TablePrimaryContext } from "./FlinkSqlParser.js";
|
|
103
|
+
import { AtomFunctionTableContext } from "./FlinkSqlParser.js";
|
|
104
|
+
import { AtomExpressionTableContext } from "./FlinkSqlParser.js";
|
|
96
105
|
import { SystemTimePeriodContext } from "./FlinkSqlParser.js";
|
|
97
106
|
import { DateTimeExpressionContext } from "./FlinkSqlParser.js";
|
|
98
107
|
import { InlineDataValueClauseContext } from "./FlinkSqlParser.js";
|
|
@@ -1106,6 +1115,66 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
|
|
|
1106
1115
|
* @param ctx the parse tree
|
|
1107
1116
|
*/
|
|
1108
1117
|
exitSelectClause?: (ctx: SelectClauseContext) => void;
|
|
1118
|
+
/**
|
|
1119
|
+
* Enter a parse tree produced by `FlinkSqlParser.selectList`.
|
|
1120
|
+
* @param ctx the parse tree
|
|
1121
|
+
*/
|
|
1122
|
+
enterSelectList?: (ctx: SelectListContext) => void;
|
|
1123
|
+
/**
|
|
1124
|
+
* Exit a parse tree produced by `FlinkSqlParser.selectList`.
|
|
1125
|
+
* @param ctx the parse tree
|
|
1126
|
+
*/
|
|
1127
|
+
exitSelectList?: (ctx: SelectListContext) => void;
|
|
1128
|
+
/**
|
|
1129
|
+
* Enter a parse tree produced by `FlinkSqlParser.columnProjectItem`.
|
|
1130
|
+
* @param ctx the parse tree
|
|
1131
|
+
*/
|
|
1132
|
+
enterColumnProjectItem?: (ctx: ColumnProjectItemContext) => void;
|
|
1133
|
+
/**
|
|
1134
|
+
* Exit a parse tree produced by `FlinkSqlParser.columnProjectItem`.
|
|
1135
|
+
* @param ctx the parse tree
|
|
1136
|
+
*/
|
|
1137
|
+
exitColumnProjectItem?: (ctx: ColumnProjectItemContext) => void;
|
|
1138
|
+
/**
|
|
1139
|
+
* Enter a parse tree produced by `FlinkSqlParser.selectWindowItemColumnName`.
|
|
1140
|
+
* @param ctx the parse tree
|
|
1141
|
+
*/
|
|
1142
|
+
enterSelectWindowItemColumnName?: (ctx: SelectWindowItemColumnNameContext) => void;
|
|
1143
|
+
/**
|
|
1144
|
+
* Exit a parse tree produced by `FlinkSqlParser.selectWindowItemColumnName`.
|
|
1145
|
+
* @param ctx the parse tree
|
|
1146
|
+
*/
|
|
1147
|
+
exitSelectWindowItemColumnName?: (ctx: SelectWindowItemColumnNameContext) => void;
|
|
1148
|
+
/**
|
|
1149
|
+
* Enter a parse tree produced by `FlinkSqlParser.selectExpressionColumnName`.
|
|
1150
|
+
* @param ctx the parse tree
|
|
1151
|
+
*/
|
|
1152
|
+
enterSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
|
|
1153
|
+
/**
|
|
1154
|
+
* Exit a parse tree produced by `FlinkSqlParser.selectExpressionColumnName`.
|
|
1155
|
+
* @param ctx the parse tree
|
|
1156
|
+
*/
|
|
1157
|
+
exitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => void;
|
|
1158
|
+
/**
|
|
1159
|
+
* Enter a parse tree produced by `FlinkSqlParser.selectLiteralColumnName`.
|
|
1160
|
+
* @param ctx the parse tree
|
|
1161
|
+
*/
|
|
1162
|
+
enterSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
|
|
1163
|
+
/**
|
|
1164
|
+
* Exit a parse tree produced by `FlinkSqlParser.selectLiteralColumnName`.
|
|
1165
|
+
* @param ctx the parse tree
|
|
1166
|
+
*/
|
|
1167
|
+
exitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => void;
|
|
1168
|
+
/**
|
|
1169
|
+
* Enter a parse tree produced by `FlinkSqlParser.columnAlias`.
|
|
1170
|
+
* @param ctx the parse tree
|
|
1171
|
+
*/
|
|
1172
|
+
enterColumnAlias?: (ctx: ColumnAliasContext) => void;
|
|
1173
|
+
/**
|
|
1174
|
+
* Exit a parse tree produced by `FlinkSqlParser.columnAlias`.
|
|
1175
|
+
* @param ctx the parse tree
|
|
1176
|
+
*/
|
|
1177
|
+
exitColumnAlias?: (ctx: ColumnAliasContext) => void;
|
|
1109
1178
|
/**
|
|
1110
1179
|
* Enter a parse tree produced by `FlinkSqlParser.projectItemDefinition`.
|
|
1111
1180
|
* @param ctx the parse tree
|
|
@@ -1116,6 +1185,16 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
|
|
|
1116
1185
|
* @param ctx the parse tree
|
|
1117
1186
|
*/
|
|
1118
1187
|
exitProjectItemDefinition?: (ctx: ProjectItemDefinitionContext) => void;
|
|
1188
|
+
/**
|
|
1189
|
+
* Enter a parse tree produced by `FlinkSqlParser.tableAllColumns`.
|
|
1190
|
+
* @param ctx the parse tree
|
|
1191
|
+
*/
|
|
1192
|
+
enterTableAllColumns?: (ctx: TableAllColumnsContext) => void;
|
|
1193
|
+
/**
|
|
1194
|
+
* Exit a parse tree produced by `FlinkSqlParser.tableAllColumns`.
|
|
1195
|
+
* @param ctx the parse tree
|
|
1196
|
+
*/
|
|
1197
|
+
exitTableAllColumns?: (ctx: TableAllColumnsContext) => void;
|
|
1119
1198
|
/**
|
|
1120
1199
|
* Enter a parse tree produced by `FlinkSqlParser.overWindowItem`.
|
|
1121
1200
|
* @param ctx the parse tree
|
|
@@ -1166,6 +1245,26 @@ export declare class FlinkSqlParserListener implements ParseTreeListener {
|
|
|
1166
1245
|
* @param ctx the parse tree
|
|
1167
1246
|
*/
|
|
1168
1247
|
exitTablePrimary?: (ctx: TablePrimaryContext) => void;
|
|
1248
|
+
/**
|
|
1249
|
+
* Enter a parse tree produced by `FlinkSqlParser.atomFunctionTable`.
|
|
1250
|
+
* @param ctx the parse tree
|
|
1251
|
+
*/
|
|
1252
|
+
enterAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
|
|
1253
|
+
/**
|
|
1254
|
+
* Exit a parse tree produced by `FlinkSqlParser.atomFunctionTable`.
|
|
1255
|
+
* @param ctx the parse tree
|
|
1256
|
+
*/
|
|
1257
|
+
exitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => void;
|
|
1258
|
+
/**
|
|
1259
|
+
* Enter a parse tree produced by `FlinkSqlParser.atomExpressionTable`.
|
|
1260
|
+
* @param ctx the parse tree
|
|
1261
|
+
*/
|
|
1262
|
+
enterAtomExpressionTable?: (ctx: AtomExpressionTableContext) => void;
|
|
1263
|
+
/**
|
|
1264
|
+
* Exit a parse tree produced by `FlinkSqlParser.atomExpressionTable`.
|
|
1265
|
+
* @param ctx the parse tree
|
|
1266
|
+
*/
|
|
1267
|
+
exitAtomExpressionTable?: (ctx: AtomExpressionTableContext) => void;
|
|
1169
1268
|
/**
|
|
1170
1269
|
* Enter a parse tree produced by `FlinkSqlParser.systemTimePeriod`.
|
|
1171
1270
|
* @param ctx the parse tree
|
|
@@ -87,12 +87,21 @@ import { WithItemContext } from "./FlinkSqlParser.js";
|
|
|
87
87
|
import { WithItemNameContext } from "./FlinkSqlParser.js";
|
|
88
88
|
import { SelectStatementContext } from "./FlinkSqlParser.js";
|
|
89
89
|
import { SelectClauseContext } from "./FlinkSqlParser.js";
|
|
90
|
+
import { SelectListContext } from "./FlinkSqlParser.js";
|
|
91
|
+
import { ColumnProjectItemContext } from "./FlinkSqlParser.js";
|
|
92
|
+
import { SelectWindowItemColumnNameContext } from "./FlinkSqlParser.js";
|
|
93
|
+
import { SelectExpressionColumnNameContext } from "./FlinkSqlParser.js";
|
|
94
|
+
import { SelectLiteralColumnNameContext } from "./FlinkSqlParser.js";
|
|
95
|
+
import { ColumnAliasContext } from "./FlinkSqlParser.js";
|
|
90
96
|
import { ProjectItemDefinitionContext } from "./FlinkSqlParser.js";
|
|
97
|
+
import { TableAllColumnsContext } from "./FlinkSqlParser.js";
|
|
91
98
|
import { OverWindowItemContext } from "./FlinkSqlParser.js";
|
|
92
99
|
import { FromClauseContext } from "./FlinkSqlParser.js";
|
|
93
100
|
import { TableExpressionContext } from "./FlinkSqlParser.js";
|
|
94
101
|
import { TableReferenceContext } from "./FlinkSqlParser.js";
|
|
95
102
|
import { TablePrimaryContext } from "./FlinkSqlParser.js";
|
|
103
|
+
import { AtomFunctionTableContext } from "./FlinkSqlParser.js";
|
|
104
|
+
import { AtomExpressionTableContext } from "./FlinkSqlParser.js";
|
|
96
105
|
import { SystemTimePeriodContext } from "./FlinkSqlParser.js";
|
|
97
106
|
import { DateTimeExpressionContext } from "./FlinkSqlParser.js";
|
|
98
107
|
import { InlineDataValueClauseContext } from "./FlinkSqlParser.js";
|
|
@@ -755,12 +764,54 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
|
|
|
755
764
|
* @return the visitor result
|
|
756
765
|
*/
|
|
757
766
|
visitSelectClause?: (ctx: SelectClauseContext) => Result;
|
|
767
|
+
/**
|
|
768
|
+
* Visit a parse tree produced by `FlinkSqlParser.selectList`.
|
|
769
|
+
* @param ctx the parse tree
|
|
770
|
+
* @return the visitor result
|
|
771
|
+
*/
|
|
772
|
+
visitSelectList?: (ctx: SelectListContext) => Result;
|
|
773
|
+
/**
|
|
774
|
+
* Visit a parse tree produced by `FlinkSqlParser.columnProjectItem`.
|
|
775
|
+
* @param ctx the parse tree
|
|
776
|
+
* @return the visitor result
|
|
777
|
+
*/
|
|
778
|
+
visitColumnProjectItem?: (ctx: ColumnProjectItemContext) => Result;
|
|
779
|
+
/**
|
|
780
|
+
* Visit a parse tree produced by `FlinkSqlParser.selectWindowItemColumnName`.
|
|
781
|
+
* @param ctx the parse tree
|
|
782
|
+
* @return the visitor result
|
|
783
|
+
*/
|
|
784
|
+
visitSelectWindowItemColumnName?: (ctx: SelectWindowItemColumnNameContext) => Result;
|
|
785
|
+
/**
|
|
786
|
+
* Visit a parse tree produced by `FlinkSqlParser.selectExpressionColumnName`.
|
|
787
|
+
* @param ctx the parse tree
|
|
788
|
+
* @return the visitor result
|
|
789
|
+
*/
|
|
790
|
+
visitSelectExpressionColumnName?: (ctx: SelectExpressionColumnNameContext) => Result;
|
|
791
|
+
/**
|
|
792
|
+
* Visit a parse tree produced by `FlinkSqlParser.selectLiteralColumnName`.
|
|
793
|
+
* @param ctx the parse tree
|
|
794
|
+
* @return the visitor result
|
|
795
|
+
*/
|
|
796
|
+
visitSelectLiteralColumnName?: (ctx: SelectLiteralColumnNameContext) => Result;
|
|
797
|
+
/**
|
|
798
|
+
* Visit a parse tree produced by `FlinkSqlParser.columnAlias`.
|
|
799
|
+
* @param ctx the parse tree
|
|
800
|
+
* @return the visitor result
|
|
801
|
+
*/
|
|
802
|
+
visitColumnAlias?: (ctx: ColumnAliasContext) => Result;
|
|
758
803
|
/**
|
|
759
804
|
* Visit a parse tree produced by `FlinkSqlParser.projectItemDefinition`.
|
|
760
805
|
* @param ctx the parse tree
|
|
761
806
|
* @return the visitor result
|
|
762
807
|
*/
|
|
763
808
|
visitProjectItemDefinition?: (ctx: ProjectItemDefinitionContext) => Result;
|
|
809
|
+
/**
|
|
810
|
+
* Visit a parse tree produced by `FlinkSqlParser.tableAllColumns`.
|
|
811
|
+
* @param ctx the parse tree
|
|
812
|
+
* @return the visitor result
|
|
813
|
+
*/
|
|
814
|
+
visitTableAllColumns?: (ctx: TableAllColumnsContext) => Result;
|
|
764
815
|
/**
|
|
765
816
|
* Visit a parse tree produced by `FlinkSqlParser.overWindowItem`.
|
|
766
817
|
* @param ctx the parse tree
|
|
@@ -791,6 +842,18 @@ export declare class FlinkSqlParserVisitor<Result> extends AbstractParseTreeVisi
|
|
|
791
842
|
* @return the visitor result
|
|
792
843
|
*/
|
|
793
844
|
visitTablePrimary?: (ctx: TablePrimaryContext) => Result;
|
|
845
|
+
/**
|
|
846
|
+
* Visit a parse tree produced by `FlinkSqlParser.atomFunctionTable`.
|
|
847
|
+
* @param ctx the parse tree
|
|
848
|
+
* @return the visitor result
|
|
849
|
+
*/
|
|
850
|
+
visitAtomFunctionTable?: (ctx: AtomFunctionTableContext) => Result;
|
|
851
|
+
/**
|
|
852
|
+
* Visit a parse tree produced by `FlinkSqlParser.atomExpressionTable`.
|
|
853
|
+
* @param ctx the parse tree
|
|
854
|
+
* @return the visitor result
|
|
855
|
+
*/
|
|
856
|
+
visitAtomExpressionTable?: (ctx: AtomExpressionTableContext) => Result;
|
|
794
857
|
/**
|
|
795
858
|
* Visit a parse tree produced by `FlinkSqlParser.systemTimePeriod`.
|
|
796
859
|
* @param ctx the parse tree
|
|
@@ -690,106 +690,111 @@ export declare class HiveSqlParser extends SQLParserBase {
|
|
|
690
690
|
static readonly RULE_partitioningSpec = 245;
|
|
691
691
|
static readonly RULE_partitionTableFunctionSource = 246;
|
|
692
692
|
static readonly RULE_partitionedTableFunction = 247;
|
|
693
|
-
static readonly
|
|
694
|
-
static readonly
|
|
695
|
-
static readonly
|
|
696
|
-
static readonly
|
|
697
|
-
static readonly
|
|
698
|
-
static readonly
|
|
699
|
-
static readonly
|
|
700
|
-
static readonly
|
|
701
|
-
static readonly
|
|
702
|
-
static readonly
|
|
703
|
-
static readonly
|
|
704
|
-
static readonly
|
|
705
|
-
static readonly
|
|
706
|
-
static readonly
|
|
707
|
-
static readonly
|
|
708
|
-
static readonly
|
|
709
|
-
static readonly
|
|
710
|
-
static readonly
|
|
711
|
-
static readonly
|
|
712
|
-
static readonly
|
|
713
|
-
static readonly
|
|
714
|
-
static readonly
|
|
715
|
-
static readonly
|
|
716
|
-
static readonly
|
|
717
|
-
static readonly
|
|
718
|
-
static readonly
|
|
719
|
-
static readonly
|
|
720
|
-
static readonly
|
|
721
|
-
static readonly
|
|
722
|
-
static readonly
|
|
723
|
-
static readonly
|
|
724
|
-
static readonly
|
|
725
|
-
static readonly
|
|
726
|
-
static readonly
|
|
727
|
-
static readonly
|
|
728
|
-
static readonly
|
|
729
|
-
static readonly
|
|
730
|
-
static readonly
|
|
731
|
-
static readonly
|
|
732
|
-
static readonly
|
|
733
|
-
static readonly
|
|
734
|
-
static readonly
|
|
735
|
-
static readonly
|
|
736
|
-
static readonly
|
|
737
|
-
static readonly
|
|
738
|
-
static readonly
|
|
739
|
-
static readonly
|
|
740
|
-
static readonly
|
|
741
|
-
static readonly
|
|
742
|
-
static readonly
|
|
743
|
-
static readonly
|
|
744
|
-
static readonly
|
|
745
|
-
static readonly
|
|
746
|
-
static readonly
|
|
747
|
-
static readonly
|
|
748
|
-
static readonly
|
|
749
|
-
static readonly
|
|
750
|
-
static readonly
|
|
751
|
-
static readonly
|
|
752
|
-
static readonly
|
|
753
|
-
static readonly
|
|
754
|
-
static readonly
|
|
755
|
-
static readonly
|
|
756
|
-
static readonly
|
|
757
|
-
static readonly
|
|
758
|
-
static readonly
|
|
759
|
-
static readonly
|
|
760
|
-
static readonly
|
|
761
|
-
static readonly
|
|
762
|
-
static readonly
|
|
763
|
-
static readonly
|
|
764
|
-
static readonly
|
|
765
|
-
static readonly
|
|
766
|
-
static readonly
|
|
767
|
-
static readonly
|
|
768
|
-
static readonly
|
|
769
|
-
static readonly
|
|
770
|
-
static readonly
|
|
771
|
-
static readonly
|
|
772
|
-
static readonly
|
|
773
|
-
static readonly
|
|
774
|
-
static readonly
|
|
775
|
-
static readonly
|
|
776
|
-
static readonly
|
|
777
|
-
static readonly
|
|
778
|
-
static readonly
|
|
779
|
-
static readonly
|
|
780
|
-
static readonly
|
|
781
|
-
static readonly
|
|
782
|
-
static readonly
|
|
783
|
-
static readonly
|
|
784
|
-
static readonly
|
|
785
|
-
static readonly
|
|
786
|
-
static readonly
|
|
787
|
-
static readonly
|
|
788
|
-
static readonly
|
|
789
|
-
static readonly
|
|
790
|
-
static readonly
|
|
791
|
-
static readonly
|
|
792
|
-
static readonly
|
|
693
|
+
static readonly RULE_atomPartitionedTableFunction = 248;
|
|
694
|
+
static readonly RULE_whereClause = 249;
|
|
695
|
+
static readonly RULE_valuesClause = 250;
|
|
696
|
+
static readonly RULE_atomValuesClause = 251;
|
|
697
|
+
static readonly RULE_virtualTableSource = 252;
|
|
698
|
+
static readonly RULE_selectClause = 253;
|
|
699
|
+
static readonly RULE_selectTrfmClause = 254;
|
|
700
|
+
static readonly RULE_selectList = 255;
|
|
701
|
+
static readonly RULE_selectItem = 256;
|
|
702
|
+
static readonly RULE_selectLiteralColumnName = 257;
|
|
703
|
+
static readonly RULE_selectExpressionColumnName = 258;
|
|
704
|
+
static readonly RULE_trfmClause = 259;
|
|
705
|
+
static readonly RULE_selectExpression = 260;
|
|
706
|
+
static readonly RULE_selectExpressionList = 261;
|
|
707
|
+
static readonly RULE_window_clause = 262;
|
|
708
|
+
static readonly RULE_window_specification = 263;
|
|
709
|
+
static readonly RULE_window_frame = 264;
|
|
710
|
+
static readonly RULE_window_frame_boundary = 265;
|
|
711
|
+
static readonly RULE_groupByClause = 266;
|
|
712
|
+
static readonly RULE_rollupStandard = 267;
|
|
713
|
+
static readonly RULE_rollupOldSyntax = 268;
|
|
714
|
+
static readonly RULE_groupingSetExpression = 269;
|
|
715
|
+
static readonly RULE_havingClause = 270;
|
|
716
|
+
static readonly RULE_qualifyClause = 271;
|
|
717
|
+
static readonly RULE_expressionOrDefault = 272;
|
|
718
|
+
static readonly RULE_firstExpressionsWithAlias = 273;
|
|
719
|
+
static readonly RULE_expressions = 274;
|
|
720
|
+
static readonly RULE_expressionsInParenthesis = 275;
|
|
721
|
+
static readonly RULE_expressionsNotInParenthesis = 276;
|
|
722
|
+
static readonly RULE_orderByClause = 277;
|
|
723
|
+
static readonly RULE_partitionByClause = 278;
|
|
724
|
+
static readonly RULE_clusterByClause = 279;
|
|
725
|
+
static readonly RULE_distributeByClause = 280;
|
|
726
|
+
static readonly RULE_sortByClause = 281;
|
|
727
|
+
static readonly RULE_function_ = 282;
|
|
728
|
+
static readonly RULE_null_treatment = 283;
|
|
729
|
+
static readonly RULE_functionNameCreate = 284;
|
|
730
|
+
static readonly RULE_functionNameForDDL = 285;
|
|
731
|
+
static readonly RULE_functionNameForInvoke = 286;
|
|
732
|
+
static readonly RULE_castExpression = 287;
|
|
733
|
+
static readonly RULE_caseExpression = 288;
|
|
734
|
+
static readonly RULE_whenExpression = 289;
|
|
735
|
+
static readonly RULE_floorExpression = 290;
|
|
736
|
+
static readonly RULE_extractExpression = 291;
|
|
737
|
+
static readonly RULE_timeQualifiers = 292;
|
|
738
|
+
static readonly RULE_constant = 293;
|
|
739
|
+
static readonly RULE_intervalValue = 294;
|
|
740
|
+
static readonly RULE_intervalExpression = 295;
|
|
741
|
+
static readonly RULE_intervalQualifiers = 296;
|
|
742
|
+
static readonly RULE_expression = 297;
|
|
743
|
+
static readonly RULE_atomExpression = 298;
|
|
744
|
+
static readonly RULE_precedenceUnaryPrefixExpression = 299;
|
|
745
|
+
static readonly RULE_precedenceBitwiseXorExpression = 300;
|
|
746
|
+
static readonly RULE_precedenceStarExpression = 301;
|
|
747
|
+
static readonly RULE_precedencePlusExpression = 302;
|
|
748
|
+
static readonly RULE_precedenceConcatenateExpression = 303;
|
|
749
|
+
static readonly RULE_precedenceAmpersandExpression = 304;
|
|
750
|
+
static readonly RULE_precedenceBitwiseOrExpression = 305;
|
|
751
|
+
static readonly RULE_precedenceSimilarOperator = 306;
|
|
752
|
+
static readonly RULE_subQueryExpression = 307;
|
|
753
|
+
static readonly RULE_precedenceSimilarExpression = 308;
|
|
754
|
+
static readonly RULE_precedenceSimilarExpressionPart = 309;
|
|
755
|
+
static readonly RULE_precedenceSimilarExpressionAtom = 310;
|
|
756
|
+
static readonly RULE_precedenceSimilarExpressionIn = 311;
|
|
757
|
+
static readonly RULE_precedenceSimilarExpressionPartNot = 312;
|
|
758
|
+
static readonly RULE_precedenceDistinctOperator = 313;
|
|
759
|
+
static readonly RULE_precedenceEqualOperator = 314;
|
|
760
|
+
static readonly RULE_precedenceEqualExpression = 315;
|
|
761
|
+
static readonly RULE_isCondition = 316;
|
|
762
|
+
static readonly RULE_precedenceNotExpression = 317;
|
|
763
|
+
static readonly RULE_precedenceAndExpression = 318;
|
|
764
|
+
static readonly RULE_tableOrPartition = 319;
|
|
765
|
+
static readonly RULE_partitionSpec = 320;
|
|
766
|
+
static readonly RULE_partitionVal = 321;
|
|
767
|
+
static readonly RULE_partitionSelectorSpec = 322;
|
|
768
|
+
static readonly RULE_partitionSelectorVal = 323;
|
|
769
|
+
static readonly RULE_subQuerySelectorOperator = 324;
|
|
770
|
+
static readonly RULE_sysFuncNames = 325;
|
|
771
|
+
static readonly RULE_id_ = 326;
|
|
772
|
+
static readonly RULE_functionIdentifier = 327;
|
|
773
|
+
static readonly RULE_principalIdentifier = 328;
|
|
774
|
+
static readonly RULE_nonReserved = 329;
|
|
775
|
+
static readonly RULE_sql11ReservedKeywordsUsedAsFunctionName = 330;
|
|
776
|
+
static readonly RULE_configPropertiesItem = 331;
|
|
777
|
+
static readonly RULE_resourcePlanDdlStatements = 332;
|
|
778
|
+
static readonly RULE_mappingTypes = 333;
|
|
779
|
+
static readonly RULE_rpAssign = 334;
|
|
780
|
+
static readonly RULE_rpAssignList = 335;
|
|
781
|
+
static readonly RULE_rpUnassign = 336;
|
|
782
|
+
static readonly RULE_activate = 337;
|
|
783
|
+
static readonly RULE_enable = 338;
|
|
784
|
+
static readonly RULE_disable = 339;
|
|
785
|
+
static readonly RULE_year = 340;
|
|
786
|
+
static readonly RULE_month = 341;
|
|
787
|
+
static readonly RULE_week = 342;
|
|
788
|
+
static readonly RULE_day = 343;
|
|
789
|
+
static readonly RULE_hour = 344;
|
|
790
|
+
static readonly RULE_minute = 345;
|
|
791
|
+
static readonly RULE_second = 346;
|
|
792
|
+
static readonly RULE_decimal = 347;
|
|
793
|
+
static readonly RULE_poolPath = 348;
|
|
794
|
+
static readonly RULE_triggerAtomExpression = 349;
|
|
795
|
+
static readonly RULE_triggerActionExpression = 350;
|
|
796
|
+
static readonly RULE_poolAssign = 351;
|
|
797
|
+
static readonly RULE_poolAssignList = 352;
|
|
793
798
|
static readonly literalNames: (string | null)[];
|
|
794
799
|
static readonly symbolicNames: (string | null)[];
|
|
795
800
|
static readonly ruleNames: string[];
|
|
@@ -1048,12 +1053,17 @@ export declare class HiveSqlParser extends SQLParserBase {
|
|
|
1048
1053
|
partitioningSpec(): PartitioningSpecContext;
|
|
1049
1054
|
partitionTableFunctionSource(): PartitionTableFunctionSourceContext;
|
|
1050
1055
|
partitionedTableFunction(): PartitionedTableFunctionContext;
|
|
1056
|
+
atomPartitionedTableFunction(): AtomPartitionedTableFunctionContext;
|
|
1051
1057
|
whereClause(): WhereClauseContext;
|
|
1052
1058
|
valuesClause(): ValuesClauseContext;
|
|
1059
|
+
atomValuesClause(): AtomValuesClauseContext;
|
|
1053
1060
|
virtualTableSource(): VirtualTableSourceContext;
|
|
1054
1061
|
selectClause(): SelectClauseContext;
|
|
1055
1062
|
selectTrfmClause(): SelectTrfmClauseContext;
|
|
1063
|
+
selectList(): SelectListContext;
|
|
1056
1064
|
selectItem(): SelectItemContext;
|
|
1065
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext;
|
|
1066
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext;
|
|
1057
1067
|
trfmClause(): TrfmClauseContext;
|
|
1058
1068
|
selectExpression(): SelectExpressionContext;
|
|
1059
1069
|
selectExpressionList(): SelectExpressionListContext;
|
|
@@ -4681,6 +4691,7 @@ export declare class ViewNameCreateContext extends antlr.ParserRuleContext {
|
|
|
4681
4691
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4682
4692
|
}
|
|
4683
4693
|
export declare class SubQuerySourceContext extends antlr.ParserRuleContext {
|
|
4694
|
+
_alias?: Id_Context;
|
|
4684
4695
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4685
4696
|
LPAREN(): antlr.TerminalNode;
|
|
4686
4697
|
queryStatementExpression(): QueryStatementExpressionContext;
|
|
@@ -4715,18 +4726,26 @@ export declare class PartitionTableFunctionSourceContext extends antlr.ParserRul
|
|
|
4715
4726
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4716
4727
|
}
|
|
4717
4728
|
export declare class PartitionedTableFunctionContext extends antlr.ParserRuleContext {
|
|
4729
|
+
_alias?: Id_Context;
|
|
4730
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4731
|
+
atomPartitionedTableFunction(): AtomPartitionedTableFunctionContext;
|
|
4732
|
+
id_(): Id_Context | null;
|
|
4733
|
+
get ruleIndex(): number;
|
|
4734
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
4735
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
4736
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4737
|
+
}
|
|
4738
|
+
export declare class AtomPartitionedTableFunctionContext extends antlr.ParserRuleContext {
|
|
4718
4739
|
_n?: Id_Context;
|
|
4719
4740
|
_ptfsrc?: PartitionTableFunctionSourceContext;
|
|
4720
4741
|
_spec?: PartitioningSpecContext;
|
|
4721
|
-
_alias?: Id_Context;
|
|
4722
4742
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4723
4743
|
LPAREN(): antlr.TerminalNode[];
|
|
4724
4744
|
LPAREN(i: number): antlr.TerminalNode | null;
|
|
4725
4745
|
KW_ON(): antlr.TerminalNode;
|
|
4726
4746
|
RPAREN(): antlr.TerminalNode[];
|
|
4727
4747
|
RPAREN(i: number): antlr.TerminalNode | null;
|
|
4728
|
-
id_(): Id_Context
|
|
4729
|
-
id_(i: number): Id_Context | null;
|
|
4748
|
+
id_(): Id_Context;
|
|
4730
4749
|
partitionTableFunctionSource(): PartitionTableFunctionSourceContext;
|
|
4731
4750
|
Identifier(): antlr.TerminalNode[];
|
|
4732
4751
|
Identifier(i: number): antlr.TerminalNode | null;
|
|
@@ -4764,16 +4783,25 @@ export declare class ValuesClauseContext extends antlr.ParserRuleContext {
|
|
|
4764
4783
|
exitRule(listener: HiveSqlParserListener): void;
|
|
4765
4784
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4766
4785
|
}
|
|
4767
|
-
export declare class
|
|
4786
|
+
export declare class AtomValuesClauseContext extends antlr.ParserRuleContext {
|
|
4768
4787
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4769
4788
|
KW_TABLE(): antlr.TerminalNode;
|
|
4770
|
-
LPAREN(): antlr.TerminalNode
|
|
4771
|
-
LPAREN(i: number): antlr.TerminalNode | null;
|
|
4789
|
+
LPAREN(): antlr.TerminalNode;
|
|
4772
4790
|
valuesClause(): ValuesClauseContext;
|
|
4773
|
-
RPAREN(): antlr.TerminalNode
|
|
4774
|
-
|
|
4791
|
+
RPAREN(): antlr.TerminalNode;
|
|
4792
|
+
get ruleIndex(): number;
|
|
4793
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
4794
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
4795
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4796
|
+
}
|
|
4797
|
+
export declare class VirtualTableSourceContext extends antlr.ParserRuleContext {
|
|
4798
|
+
_alias?: TableAliasContext;
|
|
4799
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4800
|
+
atomValuesClause(): AtomValuesClauseContext;
|
|
4801
|
+
RPAREN(): antlr.TerminalNode;
|
|
4775
4802
|
tableAlias(): TableAliasContext;
|
|
4776
4803
|
KW_AS(): antlr.TerminalNode | null;
|
|
4804
|
+
LPAREN(): antlr.TerminalNode | null;
|
|
4777
4805
|
id_(): Id_Context[];
|
|
4778
4806
|
id_(i: number): Id_Context | null;
|
|
4779
4807
|
COMMA(): antlr.TerminalNode[];
|
|
@@ -4786,13 +4814,10 @@ export declare class VirtualTableSourceContext extends antlr.ParserRuleContext {
|
|
|
4786
4814
|
export declare class SelectClauseContext extends antlr.ParserRuleContext {
|
|
4787
4815
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4788
4816
|
KW_SELECT(): antlr.TerminalNode | null;
|
|
4789
|
-
|
|
4790
|
-
selectItem(i: number): SelectItemContext | null;
|
|
4817
|
+
selectList(): SelectListContext | null;
|
|
4791
4818
|
KW_TRANSFORM(): antlr.TerminalNode | null;
|
|
4792
4819
|
selectTrfmClause(): SelectTrfmClauseContext | null;
|
|
4793
4820
|
QUERY_HINT(): antlr.TerminalNode | null;
|
|
4794
|
-
COMMA(): antlr.TerminalNode[];
|
|
4795
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
4796
4821
|
KW_ALL(): antlr.TerminalNode | null;
|
|
4797
4822
|
KW_DISTINCT(): antlr.TerminalNode | null;
|
|
4798
4823
|
trfmClause(): TrfmClauseContext | null;
|
|
@@ -4822,16 +4847,28 @@ export declare class SelectTrfmClauseContext extends antlr.ParserRuleContext {
|
|
|
4822
4847
|
exitRule(listener: HiveSqlParserListener): void;
|
|
4823
4848
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4824
4849
|
}
|
|
4850
|
+
export declare class SelectListContext extends antlr.ParserRuleContext {
|
|
4851
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4852
|
+
selectItem(): SelectItemContext[];
|
|
4853
|
+
selectItem(i: number): SelectItemContext | null;
|
|
4854
|
+
COMMA(): antlr.TerminalNode[];
|
|
4855
|
+
COMMA(i: number): antlr.TerminalNode | null;
|
|
4856
|
+
get ruleIndex(): number;
|
|
4857
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
4858
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
4859
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4860
|
+
}
|
|
4825
4861
|
export declare class SelectItemContext extends antlr.ParserRuleContext {
|
|
4862
|
+
_alias?: Id_Context;
|
|
4826
4863
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4827
4864
|
tableAllColumns(): TableAllColumnsContext | null;
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
id_(): Id_Context[];
|
|
4831
|
-
id_(i: number): Id_Context | null;
|
|
4865
|
+
selectLiteralColumnName(): SelectLiteralColumnNameContext | null;
|
|
4866
|
+
selectExpressionColumnName(): SelectExpressionColumnNameContext | null;
|
|
4832
4867
|
KW_AS(): antlr.TerminalNode | null;
|
|
4833
4868
|
LPAREN(): antlr.TerminalNode | null;
|
|
4834
4869
|
RPAREN(): antlr.TerminalNode | null;
|
|
4870
|
+
id_(): Id_Context[];
|
|
4871
|
+
id_(i: number): Id_Context | null;
|
|
4835
4872
|
COMMA(): antlr.TerminalNode[];
|
|
4836
4873
|
COMMA(i: number): antlr.TerminalNode | null;
|
|
4837
4874
|
get ruleIndex(): number;
|
|
@@ -4839,6 +4876,22 @@ export declare class SelectItemContext extends antlr.ParserRuleContext {
|
|
|
4839
4876
|
exitRule(listener: HiveSqlParserListener): void;
|
|
4840
4877
|
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4841
4878
|
}
|
|
4879
|
+
export declare class SelectLiteralColumnNameContext extends antlr.ParserRuleContext {
|
|
4880
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4881
|
+
columnName(): ColumnNameContext;
|
|
4882
|
+
get ruleIndex(): number;
|
|
4883
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
4884
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
4885
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4886
|
+
}
|
|
4887
|
+
export declare class SelectExpressionColumnNameContext extends antlr.ParserRuleContext {
|
|
4888
|
+
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4889
|
+
expression(): ExpressionContext;
|
|
4890
|
+
get ruleIndex(): number;
|
|
4891
|
+
enterRule(listener: HiveSqlParserListener): void;
|
|
4892
|
+
exitRule(listener: HiveSqlParserListener): void;
|
|
4893
|
+
accept<Result>(visitor: HiveSqlParserVisitor<Result>): Result | null;
|
|
4894
|
+
}
|
|
4842
4895
|
export declare class TrfmClauseContext extends antlr.ParserRuleContext {
|
|
4843
4896
|
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
4844
4897
|
selectExpressionList(): SelectExpressionListContext;
|