dt-sql-parser 4.0.0-ng.2 → 4.0.1

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 (147) hide show
  1. package/README.md +119 -112
  2. package/dist/index.d.ts +7 -9
  3. package/dist/index.js +4 -7
  4. package/dist/lib/SQLParserBase.d.ts +8 -0
  5. package/dist/lib/SQLParserBase.js +14 -0
  6. package/dist/lib/{flinksql → flink}/FlinkSqlLexer.d.ts +2 -2
  7. package/dist/lib/{flinksql → flink}/FlinkSqlLexer.js +2 -1
  8. package/dist/lib/{flinksql → flink}/FlinkSqlParser.d.ts +5 -11
  9. package/dist/lib/{flinksql → flink}/FlinkSqlParser.js +2065 -2054
  10. package/dist/lib/{flinksql → flink}/FlinkSqlParserListener.d.ts +0 -13
  11. package/dist/lib/{flinksql → flink}/FlinkSqlParserListener.js +1 -1
  12. package/dist/lib/{flinksql → flink}/FlinkSqlParserVisitor.d.ts +0 -8
  13. package/dist/lib/{flinksql → flink}/FlinkSqlParserVisitor.js +2 -1
  14. package/dist/lib/hive/HiveSqlLexer.d.ts +258 -257
  15. package/dist/lib/hive/HiveSqlLexer.js +1794 -1786
  16. package/dist/lib/hive/HiveSqlParser.d.ts +1266 -3176
  17. package/dist/lib/hive/HiveSqlParser.js +23046 -33454
  18. package/dist/lib/hive/HiveSqlParserListener.d.ts +141 -2036
  19. package/dist/lib/hive/HiveSqlParserVisitor.d.ts +151 -1358
  20. package/dist/lib/hive/HiveSqlParserVisitor.js +1 -0
  21. package/dist/lib/impala/ImpalaSqlLexer.d.ts +170 -154
  22. package/dist/lib/impala/ImpalaSqlLexer.js +1179 -1099
  23. package/dist/lib/impala/ImpalaSqlParser.d.ts +282 -240
  24. package/dist/lib/impala/ImpalaSqlParser.js +3881 -3744
  25. package/dist/lib/impala/ImpalaSqlParserListener.d.ts +22 -11
  26. package/dist/lib/impala/ImpalaSqlParserVisitor.d.ts +14 -7
  27. package/dist/lib/impala/ImpalaSqlParserVisitor.js +1 -0
  28. package/dist/lib/index.d.ts +6 -8
  29. package/dist/lib/index.js +6 -8
  30. package/dist/lib/mysql/MySqlLexer.d.ts +2 -2
  31. package/dist/lib/mysql/MySqlLexer.js +1 -0
  32. package/dist/lib/mysql/MySqlParser.d.ts +347 -418
  33. package/dist/lib/mysql/MySqlParser.js +10484 -11099
  34. package/dist/lib/mysql/MySqlParserListener.d.ts +41 -126
  35. package/dist/lib/mysql/MySqlParserVisitor.d.ts +23 -76
  36. package/dist/lib/mysql/MySqlParserVisitor.js +1 -0
  37. package/dist/lib/{pgsql/PostgreSQLLexer.d.ts → postgresql/PostgreSqlLexer.d.ts} +3 -3
  38. package/dist/lib/{pgsql/PostgreSQLLexer.js → postgresql/PostgreSqlLexer.js} +618 -617
  39. package/dist/lib/{pgsql/PostgreSQLParser.d.ts → postgresql/PostgreSqlParser.d.ts} +3598 -3484
  40. package/dist/lib/{pgsql/PostgreSQLParser.js → postgresql/PostgreSqlParser.js} +41502 -42831
  41. package/dist/lib/{pgsql/PostgreSQLParserListener.d.ts → postgresql/PostgreSqlParserListener.d.ts} +2797 -2730
  42. package/dist/lib/{pgsql/PostgreSQLParserListener.js → postgresql/PostgreSqlParserListener.js} +3 -3
  43. package/dist/lib/{pgsql/PostgreSQLParserVisitor.d.ts → postgresql/PostgreSqlParserVisitor.d.ts} +1845 -1810
  44. package/dist/lib/{pgsql/PostgreSQLParserVisitor.js → postgresql/PostgreSqlParserVisitor.js} +4 -3
  45. package/dist/lib/spark/SparkSqlLexer.d.ts +305 -298
  46. package/dist/lib/spark/SparkSqlLexer.js +1777 -1735
  47. package/dist/lib/spark/SparkSqlParser.d.ts +1764 -669
  48. package/dist/lib/spark/SparkSqlParser.js +15460 -10769
  49. package/dist/lib/spark/SparkSqlParserListener.d.ts +1285 -35
  50. package/dist/lib/spark/SparkSqlParserVisitor.d.ts +790 -21
  51. package/dist/lib/spark/SparkSqlParserVisitor.js +1 -0
  52. package/dist/lib/{trinosql → trino}/TrinoSqlLexer.d.ts +2 -2
  53. package/dist/lib/{trinosql → trino}/TrinoSqlLexer.js +2 -1
  54. package/dist/lib/{trinosql → trino}/TrinoSqlListener.d.ts +7 -5
  55. package/dist/lib/{trinosql → trino}/TrinoSqlListener.js +1 -1
  56. package/dist/lib/{trinosql → trino}/TrinoSqlParser.d.ts +11 -5
  57. package/dist/lib/{trinosql → trino}/TrinoSqlParser.js +360 -320
  58. package/dist/lib/{trinosql → trino}/TrinoSqlVisitor.d.ts +4 -3
  59. package/dist/lib/{trinosql → trino}/TrinoSqlVisitor.js +2 -1
  60. package/dist/parser/common/{basicParser.d.ts → basicSQL.d.ts} +22 -19
  61. package/dist/parser/common/{basicParser.js → basicSQL.js} +52 -34
  62. package/dist/parser/common/entityCollector.d.ts +78 -0
  63. package/dist/parser/common/entityCollector.js +191 -0
  64. package/dist/parser/common/{utils/findCaretTokenIndex.d.ts → findCaretTokenIndex.d.ts} +2 -2
  65. package/dist/parser/common/{utils/findCaretTokenIndex.js → findCaretTokenIndex.js} +3 -2
  66. package/dist/parser/common/parseErrorListener.d.ts +6 -6
  67. package/dist/parser/common/parseErrorListener.js +1 -1
  68. package/dist/parser/common/simpleStack.d.ts +10 -0
  69. package/dist/parser/common/simpleStack.js +23 -0
  70. package/dist/parser/common/splitListener.d.ts +8 -0
  71. package/dist/parser/common/splitListener.js +12 -0
  72. package/dist/parser/common/textAndWord.d.ts +52 -0
  73. package/dist/parser/common/textAndWord.js +58 -0
  74. package/dist/parser/common/{basic-parser-types.d.ts → types.d.ts} +4 -31
  75. package/dist/parser/common/types.js +34 -0
  76. package/dist/parser/flink/flinkEntityCollector.d.ts +33 -0
  77. package/dist/parser/flink/flinkEntityCollector.js +84 -0
  78. package/dist/parser/flink/flinkSplitListener.d.ts +6 -0
  79. package/dist/parser/flink/flinkSplitListener.js +6 -0
  80. package/dist/parser/flink/index.d.ts +17 -0
  81. package/dist/parser/{flinksql.js → flink/index.js} +26 -37
  82. package/dist/parser/hive/hiveEntityCollector.d.ts +35 -0
  83. package/dist/parser/hive/hiveEntityCollector.js +90 -0
  84. package/dist/parser/hive/hiveSplitListener.d.ts +6 -0
  85. package/dist/parser/hive/hiveSplitListener.js +6 -0
  86. package/dist/parser/hive/index.d.ts +17 -0
  87. package/dist/parser/{hive.js → hive/index.js} +24 -34
  88. package/dist/parser/impala/impalaEntityCollector.d.ts +35 -0
  89. package/dist/parser/impala/impalaEntityCollector.js +90 -0
  90. package/dist/parser/impala/impalaSplitListener.d.ts +6 -0
  91. package/dist/parser/impala/impalaSplitListener.js +6 -0
  92. package/dist/parser/impala/index.d.ts +17 -0
  93. package/dist/parser/{impala.js → impala/index.js} +24 -34
  94. package/dist/parser/index.d.ts +7 -8
  95. package/dist/parser/index.js +7 -8
  96. package/dist/parser/mysql/index.d.ts +17 -0
  97. package/dist/parser/{mysql.js → mysql/index.js} +24 -34
  98. package/dist/parser/mysql/mysqlEntityCollector.d.ts +37 -0
  99. package/dist/parser/mysql/mysqlEntityCollector.js +96 -0
  100. package/dist/parser/mysql/mysqlSplitListener.d.ts +6 -0
  101. package/dist/parser/mysql/mysqlSplitListener.js +6 -0
  102. package/dist/parser/postgresql/index.d.ts +17 -0
  103. package/dist/parser/postgresql/index.js +130 -0
  104. package/dist/parser/postgresql/postgreEntityCollector.d.ts +37 -0
  105. package/dist/parser/postgresql/postgreEntityCollector.js +96 -0
  106. package/dist/parser/postgresql/postgreSplitListener.d.ts +6 -0
  107. package/dist/parser/postgresql/postgreSplitListener.js +6 -0
  108. package/dist/parser/spark/index.d.ts +17 -0
  109. package/dist/parser/{spark.js → spark/index.js} +29 -40
  110. package/dist/parser/spark/sparkEntityCollector.d.ts +37 -0
  111. package/dist/parser/spark/sparkEntityCollector.js +96 -0
  112. package/dist/parser/spark/sparkSplitListener.d.ts +6 -0
  113. package/dist/parser/spark/sparkSplitListener.js +6 -0
  114. package/dist/parser/trino/index.d.ts +17 -0
  115. package/dist/parser/{trinosql.js → trino/index.js} +25 -36
  116. package/dist/parser/trino/trinoEntityCollector.d.ts +30 -0
  117. package/dist/parser/trino/trinoEntityCollector.js +75 -0
  118. package/dist/parser/trino/trinoSplitListener.d.ts +6 -0
  119. package/dist/parser/trino/trinoSplitListener.js +6 -0
  120. package/package.json +1 -1
  121. package/dist/lib/plsql/PlSqlBaseLexer.d.ts +0 -5
  122. package/dist/lib/plsql/PlSqlBaseLexer.js +0 -7
  123. package/dist/lib/plsql/PlSqlBaseParser.d.ts +0 -10
  124. package/dist/lib/plsql/PlSqlBaseParser.js +0 -22
  125. package/dist/lib/plsql/PlSqlLexer.d.ts +0 -2381
  126. package/dist/lib/plsql/PlSqlLexer.js +0 -16440
  127. package/dist/lib/plsql/PlSqlParser.d.ts +0 -17080
  128. package/dist/lib/plsql/PlSqlParser.js +0 -184484
  129. package/dist/lib/plsql/PlSqlParserListener.d.ts +0 -8003
  130. package/dist/lib/plsql/PlSqlParserListener.js +0 -11
  131. package/dist/lib/plsql/PlSqlParserVisitor.d.ts +0 -5095
  132. package/dist/lib/plsql/PlSqlParserVisitor.js +0 -11
  133. package/dist/parser/common/basic-parser-types.js +0 -34
  134. package/dist/parser/flinksql.d.ts +0 -23
  135. package/dist/parser/hive.d.ts +0 -23
  136. package/dist/parser/impala.d.ts +0 -23
  137. package/dist/parser/mysql.d.ts +0 -23
  138. package/dist/parser/pgsql.d.ts +0 -23
  139. package/dist/parser/pgsql.js +0 -140
  140. package/dist/parser/plsql.d.ts +0 -13
  141. package/dist/parser/plsql.js +0 -25
  142. package/dist/parser/spark.d.ts +0 -23
  143. package/dist/parser/trinosql.d.ts +0 -23
  144. package/dist/utils/index.d.ts +0 -19
  145. package/dist/utils/index.js +0 -170
  146. package/dist/utils/token.d.ts +0 -59
  147. package/dist/utils/token.js +0 -48
@@ -2,7 +2,8 @@ import * as antlr from "antlr4ng";
2
2
  import { Token } from "antlr4ng";
3
3
  import { ImpalaSqlParserListener } from "./ImpalaSqlParserListener.js";
4
4
  import { ImpalaSqlParserVisitor } from "./ImpalaSqlParserVisitor.js";
5
- export declare class ImpalaSqlParser extends antlr.Parser {
5
+ import { SQLParserBase } from '../SQLParserBase';
6
+ export declare class ImpalaSqlParser extends SQLParserBase {
6
7
  static readonly KW_ADD = 1;
7
8
  static readonly KW_ALL = 2;
8
9
  static readonly KW_ANALYTIC = 3;
@@ -124,158 +125,174 @@ export declare class ImpalaSqlParser extends antlr.Parser {
124
125
  static readonly KW_LOCALTIME = 119;
125
126
  static readonly KW_LOCALTIMESTAMP = 120;
126
127
  static readonly KW_METADATA = 121;
127
- static readonly KW_MAP = 122;
128
- static readonly KW_MINUTE = 123;
129
- static readonly KW_MINUTES = 124;
130
- static readonly KW_MONTH = 125;
131
- static readonly KW_MONTHS = 126;
132
- static readonly KW_MERGE_FN = 127;
133
- static readonly KW_NFC = 128;
134
- static readonly KW_NFD = 129;
135
- static readonly KW_NFKC = 130;
136
- static readonly KW_NFKD = 131;
137
- static readonly KW_NORMALIZE = 132;
138
- static readonly KW_NOT = 133;
139
- static readonly KW_NULL = 134;
140
- static readonly KW_NULLS = 135;
141
- static readonly KW_OFFSET = 136;
142
- static readonly KW_ON = 137;
143
- static readonly KW_OPTION = 138;
144
- static readonly KW_OR = 139;
145
- static readonly KW_ORDER = 140;
146
- static readonly KW_ORDINALITY = 141;
147
- static readonly KW_OUTER = 142;
148
- static readonly KW_OWNER = 143;
149
- static readonly KW_OVER = 144;
150
- static readonly KW_OVERWRITE = 145;
151
- static readonly KW_PARTITION = 146;
152
- static readonly KW_PARTITIONS = 147;
153
- static readonly KW_PARQUET = 148;
154
- static readonly KW_POSITION = 149;
155
- static readonly KW_PRECEDING = 150;
156
- static readonly KW_PRIMARY = 151;
157
- static readonly KW_REPLICATION = 152;
158
- static readonly KW_PRIVILEGES = 153;
159
- static readonly KW_PROPERTIES = 154;
160
- static readonly KW_RANGE = 155;
161
- static readonly KW_RECOVER = 156;
162
- static readonly KW_RENAME = 157;
163
- static readonly KW_REPEATABLE = 158;
164
- static readonly KW_REPLACE = 159;
165
- static readonly KW_RESTRICT = 160;
166
- static readonly KW_RETURNS = 161;
167
- static readonly KW_REVOKE = 162;
168
- static readonly KW_REFRESH = 163;
169
- static readonly KW_REGEXP = 164;
170
- static readonly KW_RLIKE = 165;
171
- static readonly KW_RIGHT = 166;
172
- static readonly KW_ROLE = 167;
173
- static readonly KW_ROLES = 168;
174
- static readonly KW_ROW = 169;
175
- static readonly KW_ROWS = 170;
176
- static readonly KW_SCHEMA = 171;
177
- static readonly KW_SCHEMAS = 172;
178
- static readonly KW_SECOND = 173;
179
- static readonly KW_SECONDS = 174;
180
- static readonly KW_SELECT = 175;
181
- static readonly KW_SERDEPROPERTIES = 176;
182
- static readonly KW_SET = 177;
183
- static readonly KW_SEMI = 178;
184
- static readonly KW_SERVER = 179;
185
- static readonly KW_SHOW = 180;
186
- static readonly KW_SHUTDOWN = 181;
187
- static readonly KW_SOME = 182;
188
- static readonly KW_STATS = 183;
189
- static readonly KW_STRUCT = 184;
190
- static readonly KW_STRAIGHT_JOIN = 185;
191
- static readonly KW_SUBSTRING = 186;
192
- static readonly KW_SYSTEM = 187;
193
- static readonly KW_SYMBOL = 188;
194
- static readonly KW_SERIALIZE_FN = 189;
195
- static readonly KW_TABLE = 190;
196
- static readonly KW_TABLES = 191;
197
- static readonly KW_TABLESAMPLE = 192;
198
- static readonly KW_TERMINATED = 193;
199
- static readonly KW_THEN = 194;
200
- static readonly KW_TO = 195;
201
- static readonly KW_TRUE = 196;
202
- static readonly KW_TRY_CAST = 197;
203
- static readonly KW_TRUNCATE = 198;
204
- static readonly KW_UNCACHED = 199;
205
- static readonly KW_UESCAPE = 200;
206
- static readonly KW_UNBOUNDED = 201;
207
- static readonly KW_UNION = 202;
208
- static readonly KW_UNNEST = 203;
209
- static readonly KW_UNSET = 204;
210
- static readonly KW_USE = 205;
211
- static readonly KW_USER = 206;
212
- static readonly KW_USING = 207;
213
- static readonly KW_UPDATE_FN = 208;
214
- static readonly KW_UPSERT = 209;
215
- static readonly KW_UNKNOWN = 210;
216
- static readonly KW_URI = 211;
217
- static readonly KW_VALUE = 212;
218
- static readonly KW_VALUES = 213;
219
- static readonly KW_VIEW = 214;
220
- static readonly KW_VIEWS = 215;
221
- static readonly KW_WHEN = 216;
222
- static readonly KW_WHERE = 217;
223
- static readonly KW_WITH = 218;
224
- static readonly KW_YEAR = 219;
225
- static readonly KW_YEARS = 220;
226
- static readonly KW_TEXTFILE = 221;
227
- static readonly KW_ORC = 222;
228
- static readonly KW_AVRO = 223;
229
- static readonly KW_SEQUENCEFILE = 224;
230
- static readonly KW_RCFILE = 225;
231
- static readonly KW_REFERENCES = 226;
232
- static readonly KW_NOVALIDATE = 227;
233
- static readonly KW_RELY = 228;
234
- static readonly STATS_NUMDVS = 229;
235
- static readonly STATS_NUMNULLS = 230;
236
- static readonly STATS_AVGSIZE = 231;
237
- static readonly STATS_MAXSIZE = 232;
238
- static readonly EQ = 233;
239
- static readonly NEQ = 234;
240
- static readonly LT = 235;
241
- static readonly LTE = 236;
242
- static readonly GT = 237;
243
- static readonly GTE = 238;
244
- static readonly PLUS = 239;
245
- static readonly MINUS = 240;
246
- static readonly ASTERISK = 241;
247
- static readonly SLASH = 242;
248
- static readonly PERCENT = 243;
249
- static readonly CONCAT = 244;
250
- static readonly DOT = 245;
251
- static readonly SEMICOLON = 246;
252
- static readonly COMMA = 247;
253
- static readonly COLON = 248;
254
- static readonly LPAREN = 249;
255
- static readonly RPAREN = 250;
256
- static readonly LSQUARE = 251;
257
- static readonly RSQUARE = 252;
258
- static readonly LCURLY = 253;
259
- static readonly RCURLY = 254;
260
- static readonly BITWISEOR = 255;
261
- static readonly QUESTION = 256;
262
- static readonly RIGHT_ARROW = 257;
263
- static readonly STRING = 258;
264
- static readonly UNICODE_STRING = 259;
265
- static readonly BINARY_LITERAL = 260;
266
- static readonly INTEGER_VALUE = 261;
267
- static readonly DECIMAL_VALUE = 262;
268
- static readonly DOUBLE_VALUE = 263;
269
- static readonly IDENTIFIER = 264;
270
- static readonly DIGIT_IDENTIFIER = 265;
271
- static readonly QUOTED_IDENTIFIER = 266;
272
- static readonly BACKQUOTED_IDENTIFIER = 267;
273
- static readonly TIME_WITH_TIME_ZONE = 268;
274
- static readonly TIMESTAMP_WITH_TIME_ZONE = 269;
275
- static readonly DOUBLE_PRECISION = 270;
276
- static readonly SIMPLE_COMMENT = 271;
277
- static readonly BRACKETED_COMMENT = 272;
278
- static readonly WS = 273;
128
+ static readonly KW_MINUTE = 122;
129
+ static readonly KW_MINUTES = 123;
130
+ static readonly KW_MONTH = 124;
131
+ static readonly KW_MONTHS = 125;
132
+ static readonly KW_MERGE_FN = 126;
133
+ static readonly KW_NFC = 127;
134
+ static readonly KW_NFD = 128;
135
+ static readonly KW_NFKC = 129;
136
+ static readonly KW_NFKD = 130;
137
+ static readonly KW_NORMALIZE = 131;
138
+ static readonly KW_NOT = 132;
139
+ static readonly KW_NULL = 133;
140
+ static readonly KW_NULLS = 134;
141
+ static readonly KW_OFFSET = 135;
142
+ static readonly KW_ON = 136;
143
+ static readonly KW_OPTION = 137;
144
+ static readonly KW_OR = 138;
145
+ static readonly KW_ORDER = 139;
146
+ static readonly KW_ORDINALITY = 140;
147
+ static readonly KW_OUTER = 141;
148
+ static readonly KW_OWNER = 142;
149
+ static readonly KW_OVER = 143;
150
+ static readonly KW_OVERWRITE = 144;
151
+ static readonly KW_PARTITION = 145;
152
+ static readonly KW_PARTITIONS = 146;
153
+ static readonly KW_PARQUET = 147;
154
+ static readonly KW_POSITION = 148;
155
+ static readonly KW_PRECEDING = 149;
156
+ static readonly KW_PRIMARY = 150;
157
+ static readonly KW_REPLICATION = 151;
158
+ static readonly KW_PRIVILEGES = 152;
159
+ static readonly KW_PROPERTIES = 153;
160
+ static readonly KW_RANGE = 154;
161
+ static readonly KW_RECOVER = 155;
162
+ static readonly KW_RENAME = 156;
163
+ static readonly KW_REPEATABLE = 157;
164
+ static readonly KW_REPLACE = 158;
165
+ static readonly KW_RESTRICT = 159;
166
+ static readonly KW_RETURNS = 160;
167
+ static readonly KW_REVOKE = 161;
168
+ static readonly KW_REFRESH = 162;
169
+ static readonly KW_REGEXP = 163;
170
+ static readonly KW_RLIKE = 164;
171
+ static readonly KW_RIGHT = 165;
172
+ static readonly KW_ROLE = 166;
173
+ static readonly KW_ROLES = 167;
174
+ static readonly KW_ROW = 168;
175
+ static readonly KW_ROWS = 169;
176
+ static readonly KW_SCHEMA = 170;
177
+ static readonly KW_SCHEMAS = 171;
178
+ static readonly KW_SECOND = 172;
179
+ static readonly KW_SECONDS = 173;
180
+ static readonly KW_SELECT = 174;
181
+ static readonly KW_SERDEPROPERTIES = 175;
182
+ static readonly KW_SET = 176;
183
+ static readonly KW_SEMI = 177;
184
+ static readonly KW_SERVER = 178;
185
+ static readonly KW_SHOW = 179;
186
+ static readonly KW_SHUTDOWN = 180;
187
+ static readonly KW_SOME = 181;
188
+ static readonly KW_STATS = 182;
189
+ static readonly KW_STRAIGHT_JOIN = 183;
190
+ static readonly KW_SUBSTRING = 184;
191
+ static readonly KW_SYSTEM = 185;
192
+ static readonly KW_SYMBOL = 186;
193
+ static readonly KW_SERIALIZE_FN = 187;
194
+ static readonly KW_TABLE = 188;
195
+ static readonly KW_TABLES = 189;
196
+ static readonly KW_TABLESAMPLE = 190;
197
+ static readonly KW_TERMINATED = 191;
198
+ static readonly KW_THEN = 192;
199
+ static readonly KW_TO = 193;
200
+ static readonly KW_TRUE = 194;
201
+ static readonly KW_TRY_CAST = 195;
202
+ static readonly KW_TRUNCATE = 196;
203
+ static readonly KW_UNCACHED = 197;
204
+ static readonly KW_UESCAPE = 198;
205
+ static readonly KW_UNBOUNDED = 199;
206
+ static readonly KW_UNION = 200;
207
+ static readonly KW_UNNEST = 201;
208
+ static readonly KW_UNSET = 202;
209
+ static readonly KW_USE = 203;
210
+ static readonly KW_USER = 204;
211
+ static readonly KW_USING = 205;
212
+ static readonly KW_UPDATE_FN = 206;
213
+ static readonly KW_UPSERT = 207;
214
+ static readonly KW_UNKNOWN = 208;
215
+ static readonly KW_URI = 209;
216
+ static readonly KW_VALUE = 210;
217
+ static readonly KW_VALUES = 211;
218
+ static readonly KW_VIEW = 212;
219
+ static readonly KW_VIEWS = 213;
220
+ static readonly KW_WHEN = 214;
221
+ static readonly KW_WHERE = 215;
222
+ static readonly KW_WITH = 216;
223
+ static readonly KW_YEAR = 217;
224
+ static readonly KW_YEARS = 218;
225
+ static readonly KW_TEXTFILE = 219;
226
+ static readonly KW_ORC = 220;
227
+ static readonly KW_AVRO = 221;
228
+ static readonly KW_SEQUENCEFILE = 222;
229
+ static readonly KW_RCFILE = 223;
230
+ static readonly KW_REFERENCES = 224;
231
+ static readonly KW_NOVALIDATE = 225;
232
+ static readonly KW_RELY = 226;
233
+ static readonly KW_BINARY = 227;
234
+ static readonly KW_BIGINT = 228;
235
+ static readonly KW_BOOLEAN = 229;
236
+ static readonly KW_CHAR = 230;
237
+ static readonly KW_DATE = 231;
238
+ static readonly KW_DECIMAL = 232;
239
+ static readonly KW_DOUBLE = 233;
240
+ static readonly KW_INT = 234;
241
+ static readonly KW_MAP = 235;
242
+ static readonly KW_REAL = 236;
243
+ static readonly KW_SMALLINT = 237;
244
+ static readonly KW_FLOAT = 238;
245
+ static readonly KW_STRING = 239;
246
+ static readonly KW_STRUCT = 240;
247
+ static readonly KW_TIMESTAMP = 241;
248
+ static readonly KW_TINYINT = 242;
249
+ static readonly KW_VARCHAR = 243;
250
+ static readonly KW_COMPLEX = 244;
251
+ static readonly STATS_NUMDVS = 245;
252
+ static readonly STATS_NUMNULLS = 246;
253
+ static readonly STATS_AVGSIZE = 247;
254
+ static readonly STATS_MAXSIZE = 248;
255
+ static readonly EQ = 249;
256
+ static readonly NEQ = 250;
257
+ static readonly LT = 251;
258
+ static readonly LTE = 252;
259
+ static readonly GT = 253;
260
+ static readonly GTE = 254;
261
+ static readonly PLUS = 255;
262
+ static readonly MINUS = 256;
263
+ static readonly ASTERISK = 257;
264
+ static readonly SLASH = 258;
265
+ static readonly PERCENT = 259;
266
+ static readonly CONCAT = 260;
267
+ static readonly DOT = 261;
268
+ static readonly SEMICOLON = 262;
269
+ static readonly COMMA = 263;
270
+ static readonly COLON = 264;
271
+ static readonly LPAREN = 265;
272
+ static readonly RPAREN = 266;
273
+ static readonly LSQUARE = 267;
274
+ static readonly RSQUARE = 268;
275
+ static readonly LCURLY = 269;
276
+ static readonly RCURLY = 270;
277
+ static readonly BITWISEOR = 271;
278
+ static readonly QUESTION = 272;
279
+ static readonly RIGHT_ARROW = 273;
280
+ static readonly STRING = 274;
281
+ static readonly UNICODE_STRING = 275;
282
+ static readonly BINARY_LITERAL = 276;
283
+ static readonly INTEGER_VALUE = 277;
284
+ static readonly DECIMAL_VALUE = 278;
285
+ static readonly DOUBLE_VALUE = 279;
286
+ static readonly IDENTIFIER = 280;
287
+ static readonly DIGIT_IDENTIFIER = 281;
288
+ static readonly QUOTED_IDENTIFIER = 282;
289
+ static readonly BACKQUOTED_IDENTIFIER = 283;
290
+ static readonly TIME_WITH_TIME_ZONE = 284;
291
+ static readonly TIMESTAMP_WITH_TIME_ZONE = 285;
292
+ static readonly DOUBLE_PRECISION = 286;
293
+ static readonly SIMPLE_COMMENT = 287;
294
+ static readonly BRACKETED_COMMENT = 288;
295
+ static readonly WS = 289;
279
296
  static readonly RULE_program = 0;
280
297
  static readonly RULE_singleStatement = 1;
281
298
  static readonly RULE_sqlStatement = 2;
@@ -382,47 +399,47 @@ export declare class ImpalaSqlParser extends antlr.Parser {
382
399
  static readonly RULE_with = 103;
383
400
  static readonly RULE_constraintSpecification = 104;
384
401
  static readonly RULE_foreignKeySpecification = 105;
385
- static readonly RULE_columnDefinition = 106;
386
- static readonly RULE_kuduTableElement = 107;
387
- static readonly RULE_kuduColumnDefinition = 108;
388
- static readonly RULE_columnSpecWithKudu = 109;
389
- static readonly RULE_createColumnSpecWithKudu = 110;
390
- static readonly RULE_kuduAttributes = 111;
391
- static readonly RULE_kuduStorageAttr = 112;
392
- static readonly RULE_statsKey = 113;
393
- static readonly RULE_fileFormat = 114;
394
- static readonly RULE_kuduPartitionClause = 115;
395
- static readonly RULE_hashClause = 116;
396
- static readonly RULE_rangeClause = 117;
397
- static readonly RULE_kuduPartitionSpec = 118;
398
- static readonly RULE_cacheSpec = 119;
399
- static readonly RULE_rangeOperator = 120;
400
- static readonly RULE_partitionCol = 121;
401
- static readonly RULE_likeClause = 122;
402
- static readonly RULE_properties = 123;
403
- static readonly RULE_partitionedBy = 124;
404
- static readonly RULE_sortedBy = 125;
405
- static readonly RULE_rowFormat = 126;
406
- static readonly RULE_property = 127;
407
- static readonly RULE_queryNoWith = 128;
408
- static readonly RULE_queryTerm = 129;
409
- static readonly RULE_queryPrimary = 130;
410
- static readonly RULE_sortItem = 131;
411
- static readonly RULE_querySpecification = 132;
412
- static readonly RULE_groupBy = 133;
413
- static readonly RULE_groupingElement = 134;
414
- static readonly RULE_groupingSet = 135;
415
- static readonly RULE_namedQuery = 136;
416
- static readonly RULE_setQuantifier = 137;
417
- static readonly RULE_selectItem = 138;
418
- static readonly RULE_relation = 139;
419
- static readonly RULE_joinType = 140;
420
- static readonly RULE_joinCriteria = 141;
421
- static readonly RULE_sampledRelation = 142;
422
- static readonly RULE_sampleType = 143;
423
- static readonly RULE_aliasedRelation = 144;
424
- static readonly RULE_columnAliases = 145;
425
- static readonly RULE_createColumnAliases = 146;
402
+ static readonly RULE_columnSpec = 106;
403
+ static readonly RULE_columnDefinition = 107;
404
+ static readonly RULE_kuduTableElement = 108;
405
+ static readonly RULE_kuduColumnDefinition = 109;
406
+ static readonly RULE_columnSpecWithKudu = 110;
407
+ static readonly RULE_createColumnSpecWithKudu = 111;
408
+ static readonly RULE_kuduAttributes = 112;
409
+ static readonly RULE_kuduStorageAttr = 113;
410
+ static readonly RULE_statsKey = 114;
411
+ static readonly RULE_fileFormat = 115;
412
+ static readonly RULE_kuduPartitionClause = 116;
413
+ static readonly RULE_hashClause = 117;
414
+ static readonly RULE_rangeClause = 118;
415
+ static readonly RULE_kuduPartitionSpec = 119;
416
+ static readonly RULE_cacheSpec = 120;
417
+ static readonly RULE_rangeOperator = 121;
418
+ static readonly RULE_partitionCol = 122;
419
+ static readonly RULE_likeClause = 123;
420
+ static readonly RULE_properties = 124;
421
+ static readonly RULE_partitionedBy = 125;
422
+ static readonly RULE_sortedBy = 126;
423
+ static readonly RULE_rowFormat = 127;
424
+ static readonly RULE_property = 128;
425
+ static readonly RULE_queryNoWith = 129;
426
+ static readonly RULE_queryTerm = 130;
427
+ static readonly RULE_queryPrimary = 131;
428
+ static readonly RULE_sortItem = 132;
429
+ static readonly RULE_querySpecification = 133;
430
+ static readonly RULE_groupBy = 134;
431
+ static readonly RULE_groupingElement = 135;
432
+ static readonly RULE_groupingSet = 136;
433
+ static readonly RULE_namedQuery = 137;
434
+ static readonly RULE_setQuantifier = 138;
435
+ static readonly RULE_selectItem = 139;
436
+ static readonly RULE_relation = 140;
437
+ static readonly RULE_joinType = 141;
438
+ static readonly RULE_joinCriteria = 142;
439
+ static readonly RULE_sampledRelation = 143;
440
+ static readonly RULE_sampleType = 144;
441
+ static readonly RULE_aliasedRelation = 145;
442
+ static readonly RULE_columnAliases = 146;
426
443
  static readonly RULE_relationPrimary = 147;
427
444
  static readonly RULE_subQueryRelation = 148;
428
445
  static readonly RULE_unnest = 149;
@@ -441,25 +458,26 @@ export declare class ImpalaSqlParser extends antlr.Parser {
441
458
  static readonly RULE_intervalField = 162;
442
459
  static readonly RULE_normalForm = 163;
443
460
  static readonly RULE_type = 164;
444
- static readonly RULE_typeParameter = 165;
445
- static readonly RULE_baseType = 166;
446
- static readonly RULE_whenClause = 167;
447
- static readonly RULE_filter = 168;
448
- static readonly RULE_over = 169;
449
- static readonly RULE_windowFrame = 170;
450
- static readonly RULE_frameBound = 171;
451
- static readonly RULE_pathElement = 172;
452
- static readonly RULE_pathSpecification = 173;
453
- static readonly RULE_privilege = 174;
454
- static readonly RULE_objectType = 175;
455
- static readonly RULE_qualifiedName = 176;
456
- static readonly RULE_principal = 177;
457
- static readonly RULE_identifier = 178;
458
- static readonly RULE_number = 179;
459
- static readonly RULE_reservedKeywordsUsedAsFuncName = 180;
460
- static readonly RULE_nonReserved = 181;
461
- static readonly literalNames: string[];
462
- static readonly symbolicNames: string[];
461
+ static readonly RULE_dataType = 165;
462
+ static readonly RULE_typeParameter = 166;
463
+ static readonly RULE_baseType = 167;
464
+ static readonly RULE_whenClause = 168;
465
+ static readonly RULE_filter = 169;
466
+ static readonly RULE_over = 170;
467
+ static readonly RULE_windowFrame = 171;
468
+ static readonly RULE_frameBound = 172;
469
+ static readonly RULE_pathElement = 173;
470
+ static readonly RULE_pathSpecification = 174;
471
+ static readonly RULE_privilege = 175;
472
+ static readonly RULE_objectType = 176;
473
+ static readonly RULE_qualifiedName = 177;
474
+ static readonly RULE_principal = 178;
475
+ static readonly RULE_identifier = 179;
476
+ static readonly RULE_number = 180;
477
+ static readonly RULE_reservedKeywordsUsedAsFuncName = 181;
478
+ static readonly RULE_nonReserved = 182;
479
+ static readonly literalNames: (string | null)[];
480
+ static readonly symbolicNames: (string | null)[];
463
481
  static readonly ruleNames: string[];
464
482
  get grammarFileName(): string;
465
483
  get literalNames(): (string | null)[];
@@ -574,6 +592,7 @@ export declare class ImpalaSqlParser extends antlr.Parser {
574
592
  with_(): WithContext;
575
593
  constraintSpecification(): ConstraintSpecificationContext;
576
594
  foreignKeySpecification(): ForeignKeySpecificationContext;
595
+ columnSpec(): ColumnSpecContext;
577
596
  columnDefinition(): ColumnDefinitionContext;
578
597
  kuduTableElement(): KuduTableElementContext;
579
598
  kuduColumnDefinition(): KuduColumnDefinitionContext;
@@ -616,7 +635,6 @@ export declare class ImpalaSqlParser extends antlr.Parser {
616
635
  sampleType(): SampleTypeContext;
617
636
  aliasedRelation(): AliasedRelationContext;
618
637
  columnAliases(): ColumnAliasesContext;
619
- createColumnAliases(): CreateColumnAliasesContext;
620
638
  relationPrimary(): RelationPrimaryContext;
621
639
  subQueryRelation(): SubQueryRelationContext;
622
640
  unnest(): UnnestContext;
@@ -639,6 +657,7 @@ export declare class ImpalaSqlParser extends antlr.Parser {
639
657
  normalForm(): NormalFormContext;
640
658
  type_(): TypeContext;
641
659
  type_(_p: number): TypeContext;
660
+ dataType(): DataTypeContext;
642
661
  typeParameter(): TypeParameterContext;
643
662
  baseType(): BaseTypeContext;
644
663
  whenClause(): WhenClauseContext;
@@ -657,6 +676,7 @@ export declare class ImpalaSqlParser extends antlr.Parser {
657
676
  reservedKeywordsUsedAsFuncName(): ReservedKeywordsUsedAsFuncNameContext;
658
677
  nonReserved(): NonReservedContext;
659
678
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
679
+ private columnNamePath_sempred;
660
680
  private queryTerm_sempred;
661
681
  private relation_sempred;
662
682
  private booleanExpression_sempred;
@@ -758,8 +778,8 @@ export declare class CreateTableSelectContext extends antlr.ParserRuleContext {
758
778
  KW_BY(): antlr.TerminalNode | null;
759
779
  KW_AS(): antlr.TerminalNode | null;
760
780
  queryStatement(): QueryStatementContext | null;
781
+ columnAliases(): ColumnAliasesContext | null;
761
782
  partitionedBy(): PartitionedByContext | null;
762
- createColumnAliases(): CreateColumnAliasesContext | null;
763
783
  COMMA(): antlr.TerminalNode[];
764
784
  COMMA(i: number): antlr.TerminalNode | null;
765
785
  constraintSpecification(): ConstraintSpecificationContext | null;
@@ -1308,7 +1328,9 @@ export declare class ComputeIncrementalStatsContext extends antlr.ParserRuleCont
1308
1328
  KW_STATS(): antlr.TerminalNode;
1309
1329
  tableNamePath(): TableNamePathContext;
1310
1330
  KW_PARTITION(): antlr.TerminalNode | null;
1331
+ LPAREN(): antlr.TerminalNode | null;
1311
1332
  expression(): ExpressionContext | null;
1333
+ RPAREN(): antlr.TerminalNode | null;
1312
1334
  get ruleIndex(): number;
1313
1335
  enterRule(listener: ImpalaSqlParserListener): void;
1314
1336
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2073,7 +2095,7 @@ export declare class FunctionNamePathContext extends antlr.ParserRuleContext {
2073
2095
  }
2074
2096
  export declare class ColumnNamePathContext extends antlr.ParserRuleContext {
2075
2097
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2076
- qualifiedName(): QualifiedNameContext;
2098
+ qualifiedName(): QualifiedNameContext | null;
2077
2099
  get ruleIndex(): number;
2078
2100
  enterRule(listener: ImpalaSqlParserListener): void;
2079
2101
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2150,7 +2172,8 @@ export declare class AssignmentItemContext extends antlr.ParserRuleContext {
2150
2172
  export declare class ViewColumnsContext extends antlr.ParserRuleContext {
2151
2173
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2152
2174
  LPAREN(): antlr.TerminalNode;
2153
- columnNamePath(): ColumnNamePathContext;
2175
+ columnNamePathCreate(): ColumnNamePathCreateContext[];
2176
+ columnNamePathCreate(i: number): ColumnNamePathCreateContext | null;
2154
2177
  RPAREN(): antlr.TerminalNode;
2155
2178
  KW_COMMENT(): antlr.TerminalNode[];
2156
2179
  KW_COMMENT(i: number): antlr.TerminalNode | null;
@@ -2158,8 +2181,6 @@ export declare class ViewColumnsContext extends antlr.ParserRuleContext {
2158
2181
  stringLiteral(i: number): StringLiteralContext | null;
2159
2182
  COMMA(): antlr.TerminalNode[];
2160
2183
  COMMA(i: number): antlr.TerminalNode | null;
2161
- identifier(): IdentifierContext[];
2162
- identifier(i: number): IdentifierContext | null;
2163
2184
  get ruleIndex(): number;
2164
2185
  enterRule(listener: ImpalaSqlParserListener): void;
2165
2186
  exitRule(listener: ImpalaSqlParserListener): void;
@@ -2219,6 +2240,17 @@ export declare class ForeignKeySpecificationContext extends antlr.ParserRuleCont
2219
2240
  exitRule(listener: ImpalaSqlParserListener): void;
2220
2241
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2221
2242
  }
2243
+ export declare class ColumnSpecContext extends antlr.ParserRuleContext {
2244
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2245
+ columnNamePath(): ColumnNamePathContext;
2246
+ type(): TypeContext;
2247
+ KW_COMMENT(): antlr.TerminalNode | null;
2248
+ stringLiteral(): StringLiteralContext | null;
2249
+ get ruleIndex(): number;
2250
+ enterRule(listener: ImpalaSqlParserListener): void;
2251
+ exitRule(listener: ImpalaSqlParserListener): void;
2252
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2253
+ }
2222
2254
  export declare class ColumnDefinitionContext extends antlr.ParserRuleContext {
2223
2255
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2224
2256
  columnNamePathCreate(): ColumnNamePathCreateContext;
@@ -2255,10 +2287,7 @@ export declare class KuduColumnDefinitionContext extends antlr.ParserRuleContext
2255
2287
  }
2256
2288
  export declare class ColumnSpecWithKuduContext extends antlr.ParserRuleContext {
2257
2289
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2258
- columnNamePath(): ColumnNamePathContext;
2259
- type(): TypeContext;
2260
- KW_COMMENT(): antlr.TerminalNode | null;
2261
- stringLiteral(): StringLiteralContext | null;
2290
+ columnSpec(): ColumnSpecContext | null;
2262
2291
  kuduAttributes(): KuduAttributesContext[];
2263
2292
  kuduAttributes(i: number): KuduAttributesContext | null;
2264
2293
  get ruleIndex(): number;
@@ -2450,8 +2479,8 @@ export declare class PropertiesContext extends antlr.ParserRuleContext {
2450
2479
  export declare class PartitionedByContext extends antlr.ParserRuleContext {
2451
2480
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2452
2481
  LPAREN(): antlr.TerminalNode;
2453
- columnDefinition(): ColumnDefinitionContext[];
2454
- columnDefinition(i: number): ColumnDefinitionContext | null;
2482
+ columnSpec(): ColumnSpecContext[];
2483
+ columnSpec(i: number): ColumnSpecContext | null;
2455
2484
  RPAREN(): antlr.TerminalNode;
2456
2485
  COMMA(): antlr.TerminalNode[];
2457
2486
  COMMA(i: number): antlr.TerminalNode | null;
@@ -2817,19 +2846,6 @@ export declare class ColumnAliasesContext extends antlr.ParserRuleContext {
2817
2846
  exitRule(listener: ImpalaSqlParserListener): void;
2818
2847
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2819
2848
  }
2820
- export declare class CreateColumnAliasesContext extends antlr.ParserRuleContext {
2821
- constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2822
- LPAREN(): antlr.TerminalNode;
2823
- columnNamePathCreate(): ColumnNamePathCreateContext[];
2824
- columnNamePathCreate(i: number): ColumnNamePathCreateContext | null;
2825
- RPAREN(): antlr.TerminalNode;
2826
- COMMA(): antlr.TerminalNode[];
2827
- COMMA(i: number): antlr.TerminalNode | null;
2828
- get ruleIndex(): number;
2829
- enterRule(listener: ImpalaSqlParserListener): void;
2830
- exitRule(listener: ImpalaSqlParserListener): void;
2831
- accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
2832
- }
2833
2849
  export declare class RelationPrimaryContext extends antlr.ParserRuleContext {
2834
2850
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2835
2851
  tableOrViewPath(): TableOrViewPathContext | null;
@@ -3516,9 +3532,8 @@ export declare class TypeContext extends antlr.ParserRuleContext {
3516
3532
  KW_STRUCT(): antlr.TerminalNode | null;
3517
3533
  identifier(): IdentifierContext[];
3518
3534
  identifier(i: number): IdentifierContext | null;
3519
- COLON(): antlr.TerminalNode[];
3520
- COLON(i: number): antlr.TerminalNode | null;
3521
3535
  baseType(): BaseTypeContext | null;
3536
+ dataType(): DataTypeContext | null;
3522
3537
  LPAREN(): antlr.TerminalNode | null;
3523
3538
  typeParameter(): TypeParameterContext[];
3524
3539
  typeParameter(i: number): TypeParameterContext | null;
@@ -3528,6 +3543,32 @@ export declare class TypeContext extends antlr.ParserRuleContext {
3528
3543
  exitRule(listener: ImpalaSqlParserListener): void;
3529
3544
  accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3530
3545
  }
3546
+ export declare class DataTypeContext extends antlr.ParserRuleContext {
3547
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3548
+ KW_ARRAY(): antlr.TerminalNode | null;
3549
+ KW_BINARY(): antlr.TerminalNode | null;
3550
+ KW_BIGINT(): antlr.TerminalNode | null;
3551
+ KW_BOOLEAN(): antlr.TerminalNode | null;
3552
+ KW_CHAR(): antlr.TerminalNode | null;
3553
+ KW_DATE(): antlr.TerminalNode | null;
3554
+ KW_DECIMAL(): antlr.TerminalNode | null;
3555
+ KW_DOUBLE(): antlr.TerminalNode | null;
3556
+ KW_FLOAT(): antlr.TerminalNode | null;
3557
+ KW_INT(): antlr.TerminalNode | null;
3558
+ KW_MAP(): antlr.TerminalNode | null;
3559
+ KW_REAL(): antlr.TerminalNode | null;
3560
+ KW_SMALLINT(): antlr.TerminalNode | null;
3561
+ KW_STRING(): antlr.TerminalNode | null;
3562
+ KW_STRUCT(): antlr.TerminalNode | null;
3563
+ KW_TIMESTAMP(): antlr.TerminalNode | null;
3564
+ KW_TINYINT(): antlr.TerminalNode | null;
3565
+ KW_VARCHAR(): antlr.TerminalNode | null;
3566
+ KW_COMPLEX(): antlr.TerminalNode | null;
3567
+ get ruleIndex(): number;
3568
+ enterRule(listener: ImpalaSqlParserListener): void;
3569
+ exitRule(listener: ImpalaSqlParserListener): void;
3570
+ accept<Result>(visitor: ImpalaSqlParserVisitor<Result>): Result | null;
3571
+ }
3531
3572
  export declare class TypeParameterContext extends antlr.ParserRuleContext {
3532
3573
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3533
3574
  INTEGER_VALUE(): antlr.TerminalNode | null;
@@ -3837,6 +3878,7 @@ export declare class NonReservedContext extends antlr.ParserRuleContext {
3837
3878
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
3838
3879
  KW_BERNOULLI(): antlr.TerminalNode | null;
3839
3880
  KW_DAY(): antlr.TerminalNode | null;
3881
+ KW_DATE(): antlr.TerminalNode | null;
3840
3882
  KW_DAYS(): antlr.TerminalNode | null;
3841
3883
  KW_EXCLUDING(): antlr.TerminalNode | null;
3842
3884
  KW_HOUR(): antlr.TerminalNode | null;