dt-sql-parser 4.5.1-beta.0 → 4.5.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/lib/flink/FlinkSqlLexer.d.ts +399 -397
  2. package/dist/lib/flink/FlinkSqlLexer.js +2504 -2489
  3. package/dist/lib/flink/FlinkSqlParser.d.ts +617 -465
  4. package/dist/lib/flink/FlinkSqlParser.js +5014 -3359
  5. package/dist/lib/flink/FlinkSqlParserListener.d.ts +90 -0
  6. package/dist/lib/flink/FlinkSqlParserVisitor.d.ts +57 -0
  7. package/dist/lib/generic/GenericSqlListener.d.ts +5 -90
  8. package/dist/lib/generic/GenericSqlParser.d.ts +32 -101
  9. package/dist/lib/generic/GenericSqlParser.js +912 -1312
  10. package/dist/lib/generic/GenericSqlVisitor.d.ts +3 -56
  11. package/dist/lib/mysql/MySqlParser.d.ts +31 -8
  12. package/dist/lib/mysql/MySqlParser.js +5786 -5659
  13. package/dist/lib/mysql/MySqlParserListener.d.ts +33 -5
  14. package/dist/lib/mysql/MySqlParserVisitor.d.ts +20 -3
  15. package/dist/lib/postgresql/PostgreSqlParser.d.ts +19 -2
  16. package/dist/lib/postgresql/PostgreSqlParser.js +1857 -1756
  17. package/dist/lib/postgresql/PostgreSqlParserListener.d.ts +20 -5
  18. package/dist/lib/postgresql/PostgreSqlParserVisitor.d.ts +12 -3
  19. package/dist/lib/spark/SparkSqlParser.d.ts +1 -1
  20. package/dist/lib/spark/SparkSqlParser.js +2925 -2963
  21. package/dist/lib/trino/TrinoSqlLexer.d.ts +297 -296
  22. package/dist/lib/trino/TrinoSqlLexer.js +1451 -1445
  23. package/dist/lib/trino/TrinoSqlListener.d.ts +46 -0
  24. package/dist/lib/trino/TrinoSqlParser.d.ts +463 -411
  25. package/dist/lib/trino/TrinoSqlParser.js +5382 -5048
  26. package/dist/lib/trino/TrinoSqlVisitor.d.ts +29 -0
  27. package/dist/parser/common/basicSQL.d.ts +12 -0
  28. package/dist/parser/common/basicSQL.js +71 -0
  29. package/dist/parser/generic/genericEntityCollector.d.ts +3 -6
  30. package/dist/parser/generic/genericEntityCollector.js +21 -29
  31. package/dist/parser/generic/index.js +0 -15
  32. package/dist/parser/mysql/index.js +14 -0
  33. package/dist/parser/mysql/mysqlEntityCollector.d.ts +2 -1
  34. package/dist/parser/mysql/mysqlEntityCollector.js +5 -0
  35. package/dist/parser/postgresql/index.js +2 -1
  36. package/dist/parser/postgresql/postgreEntityCollector.d.ts +2 -1
  37. package/dist/parser/postgresql/postgreEntityCollector.js +5 -0
  38. package/dist/parser/trino/index.js +3 -1
  39. package/package.json +1 -1
@@ -47,303 +47,305 @@ export declare class TrinoSqlParser extends SQLParserBase {
47
47
  static readonly KW_CAST = 41;
48
48
  static readonly KW_CATALOG = 42;
49
49
  static readonly KW_CATALOGS = 43;
50
- static readonly KW_COLUMN = 44;
51
- static readonly KW_COLUMNS = 45;
52
- static readonly KW_COMMENT = 46;
53
- static readonly KW_COMMIT = 47;
54
- static readonly KW_COMMITTED = 48;
55
- static readonly KW_CONDITIONAL = 49;
56
- static readonly KW_CONSTRAINT = 50;
57
- static readonly KW_COUNT = 51;
58
- static readonly KW_COPARTITION = 52;
59
- static readonly KW_CREATE = 53;
60
- static readonly KW_CROSS = 54;
61
- static readonly KW_CUBE = 55;
62
- static readonly KW_CURRENT = 56;
63
- static readonly KW_CURRENT_CATALOG = 57;
64
- static readonly KW_CURRENT_DATE = 58;
65
- static readonly KW_CURRENT_PATH = 59;
66
- static readonly KW_CURRENT_ROLE = 60;
67
- static readonly KW_CURRENT_SCHEMA = 61;
68
- static readonly KW_CURRENT_TIME = 62;
69
- static readonly KW_CURRENT_TIMESTAMP = 63;
70
- static readonly KW_CURRENT_USER = 64;
71
- static readonly KW_DATA = 65;
72
- static readonly KW_DATE = 66;
73
- static readonly KW_DAY = 67;
74
- static readonly KW_DEALLOCATE = 68;
75
- static readonly KW_DECLARE = 69;
76
- static readonly KW_DEFAULT = 70;
77
- static readonly KW_DEFINE = 71;
78
- static readonly KW_DEFINER = 72;
79
- static readonly KW_DELETE = 73;
80
- static readonly KW_DENY = 74;
81
- static readonly KW_DESC = 75;
82
- static readonly KW_DESCRIBE = 76;
83
- static readonly KW_DESCRIPTOR = 77;
84
- static readonly KW_DETERMINISTIC = 78;
85
- static readonly KW_DISTINCT = 79;
86
- static readonly KW_DISTRIBUTED = 80;
87
- static readonly KW_DO = 81;
88
- static readonly KW_DOUBLE = 82;
89
- static readonly KW_DROP = 83;
90
- static readonly KW_ELSE = 84;
91
- static readonly KW_EMPTY = 85;
92
- static readonly KW_ELSEIF = 86;
93
- static readonly KW_ENCODING = 87;
94
- static readonly KW_END = 88;
95
- static readonly KW_ERROR = 89;
96
- static readonly KW_ESCAPE = 90;
97
- static readonly KW_EXCEPT = 91;
98
- static readonly KW_EXCLUDING = 92;
99
- static readonly KW_EXECUTE = 93;
100
- static readonly KW_EXISTS = 94;
101
- static readonly KW_EXPLAIN = 95;
102
- static readonly KW_EXTRACT = 96;
103
- static readonly KW_FALSE = 97;
104
- static readonly KW_FETCH = 98;
105
- static readonly KW_FILTER = 99;
106
- static readonly KW_FINAL = 100;
107
- static readonly KW_FIRST = 101;
108
- static readonly KW_FOLLOWING = 102;
109
- static readonly KW_FOR = 103;
110
- static readonly KW_FORMAT = 104;
111
- static readonly KW_FROM = 105;
112
- static readonly KW_FULL = 106;
113
- static readonly KW_FUNCTION = 107;
114
- static readonly KW_FUNCTIONS = 108;
115
- static readonly KW_GRACE = 109;
116
- static readonly KW_GRANT = 110;
117
- static readonly KW_GRANTED = 111;
118
- static readonly KW_GRANTS = 112;
119
- static readonly KW_GRAPHVIZ = 113;
120
- static readonly KW_GROUP = 114;
121
- static readonly KW_GROUPING = 115;
122
- static readonly KW_GROUPS = 116;
123
- static readonly KW_HAVING = 117;
124
- static readonly KW_HOUR = 118;
125
- static readonly KW_IF = 119;
126
- static readonly KW_IGNORE = 120;
127
- static readonly KW_IMMEDIATE = 121;
128
- static readonly KW_IN = 122;
129
- static readonly KW_INCLUDING = 123;
130
- static readonly KW_INITIAL = 124;
131
- static readonly KW_INNER = 125;
132
- static readonly KW_INPUT = 126;
133
- static readonly KW_INSERT = 127;
134
- static readonly KW_INTERSECT = 128;
135
- static readonly KW_INTERVAL = 129;
136
- static readonly KW_INTO = 130;
137
- static readonly KW_INVOKER = 131;
138
- static readonly KW_IO = 132;
139
- static readonly KW_IS = 133;
140
- static readonly KW_ISOLATION = 134;
141
- static readonly KW_ITERATE = 135;
142
- static readonly KW_JOIN = 136;
143
- static readonly KW_JSON = 137;
144
- static readonly KW_JSON_ARRAY = 138;
145
- static readonly KW_JSON_EXISTS = 139;
146
- static readonly KW_JSON_OBJECT = 140;
147
- static readonly KW_JSON_QUERY = 141;
148
- static readonly KW_JSON_TABLE = 142;
149
- static readonly KW_JSON_VALUE = 143;
150
- static readonly KW_KEEP = 144;
151
- static readonly KW_KEY = 145;
152
- static readonly KW_KEYS = 146;
153
- static readonly KW_LANGUAGE = 147;
154
- static readonly KW_LAST = 148;
155
- static readonly KW_LATERAL = 149;
156
- static readonly KW_LEADING = 150;
157
- static readonly KW_LEAVE = 151;
158
- static readonly KW_LEFT = 152;
159
- static readonly KW_LEVEL = 153;
160
- static readonly KW_LIKE = 154;
161
- static readonly KW_LIMIT = 155;
162
- static readonly KW_LISTAGG = 156;
163
- static readonly KW_LOCAL = 157;
164
- static readonly KW_LOCALTIME = 158;
165
- static readonly KW_LOCALTIMESTAMP = 159;
166
- static readonly KW_LOGICAL = 160;
167
- static readonly KW_LOOP = 161;
168
- static readonly KW_MAP = 162;
169
- static readonly KW_MATCH = 163;
170
- static readonly KW_MATCHED = 164;
171
- static readonly KW_MATCHES = 165;
172
- static readonly KW_MATCH_RECOGNIZE = 166;
173
- static readonly KW_MATERIALIZED = 167;
174
- static readonly KW_MEASURES = 168;
175
- static readonly KW_MERGE = 169;
176
- static readonly KW_MINUTE = 170;
177
- static readonly KW_MONTH = 171;
178
- static readonly KW_NATURAL = 172;
179
- static readonly KW_NESTED = 173;
180
- static readonly KW_NEXT = 174;
181
- static readonly KW_NFC = 175;
182
- static readonly KW_NFD = 176;
183
- static readonly KW_NFKC = 177;
184
- static readonly KW_NFKD = 178;
185
- static readonly KW_NO = 179;
186
- static readonly KW_NONE = 180;
187
- static readonly KW_NORMALIZE = 181;
188
- static readonly KW_NOT = 182;
189
- static readonly KW_NULL = 183;
190
- static readonly KW_NULLIF = 184;
191
- static readonly KW_NULLS = 185;
192
- static readonly KW_OBJECT = 186;
193
- static readonly KW_OF = 187;
194
- static readonly KW_OFFSET = 188;
195
- static readonly KW_OMIT = 189;
196
- static readonly KW_ON = 190;
197
- static readonly KW_ONE = 191;
198
- static readonly KW_ONLY = 192;
199
- static readonly KW_OPTION = 193;
200
- static readonly KW_OR = 194;
201
- static readonly KW_ORDER = 195;
202
- static readonly KW_ORDINALITY = 196;
203
- static readonly KW_OUTER = 197;
204
- static readonly KW_OUTPUT = 198;
205
- static readonly KW_OVER = 199;
206
- static readonly KW_OVERFLOW = 200;
207
- static readonly KW_PARTITION = 201;
208
- static readonly KW_PARTITIONS = 202;
209
- static readonly KW_PASSING = 203;
210
- static readonly KW_PAST = 204;
211
- static readonly KW_PATH = 205;
212
- static readonly KW_PATTERN = 206;
213
- static readonly KW_PER = 207;
214
- static readonly KW_PERIOD = 208;
215
- static readonly KW_PERMUTE = 209;
216
- static readonly KW_PLAN = 210;
217
- static readonly KW_POSITION = 211;
218
- static readonly KW_PRECEDING = 212;
219
- static readonly KW_PRECISION = 213;
220
- static readonly KW_PREPARE = 214;
221
- static readonly KW_PRIVILEGES = 215;
222
- static readonly KW_PROPERTIES = 216;
223
- static readonly KW_PRUNE = 217;
224
- static readonly KW_QUOTES = 218;
225
- static readonly KW_RANGE = 219;
226
- static readonly KW_READ = 220;
227
- static readonly KW_RECURSIVE = 221;
228
- static readonly KW_REFRESH = 222;
229
- static readonly KW_RENAME = 223;
230
- static readonly KW_REPEAT = 224;
231
- static readonly KW_REPEATABLE = 225;
232
- static readonly KW_REPLACE = 226;
233
- static readonly KW_RESET = 227;
234
- static readonly KW_RESPECT = 228;
235
- static readonly KW_RESTRICT = 229;
236
- static readonly KW_RETURN = 230;
237
- static readonly KW_RETURNING = 231;
238
- static readonly KW_RETURNS = 232;
239
- static readonly KW_REVOKE = 233;
240
- static readonly KW_RIGHT = 234;
241
- static readonly KW_ROLE = 235;
242
- static readonly KW_ROLES = 236;
243
- static readonly KW_ROLLBACK = 237;
244
- static readonly KW_ROLLUP = 238;
245
- static readonly KW_ROW = 239;
246
- static readonly KW_ROWS = 240;
247
- static readonly KW_RUNNING = 241;
248
- static readonly KW_SCALAR = 242;
249
- static readonly KW_SCHEMA = 243;
250
- static readonly KW_SCHEMAS = 244;
251
- static readonly KW_SECOND = 245;
252
- static readonly KW_SECURITY = 246;
253
- static readonly KW_SEEK = 247;
254
- static readonly KW_SELECT = 248;
255
- static readonly KW_SERIALIZABLE = 249;
256
- static readonly KW_SESSION = 250;
257
- static readonly KW_SET = 251;
258
- static readonly KW_SETS = 252;
259
- static readonly KW_SHOW = 253;
260
- static readonly KW_SOME = 254;
261
- static readonly KW_START = 255;
262
- static readonly KW_STATS = 256;
263
- static readonly KW_SUBSET = 257;
264
- static readonly KW_SUBSTRING = 258;
265
- static readonly KW_SYSTEM = 259;
266
- static readonly KW_TABLE = 260;
267
- static readonly KW_TABLES = 261;
268
- static readonly KW_TABLESAMPLE = 262;
269
- static readonly KW_TEXT = 263;
270
- static readonly KW_TEXT_STRING = 264;
271
- static readonly KW_THEN = 265;
272
- static readonly KW_TIES = 266;
273
- static readonly KW_TIME = 267;
274
- static readonly KW_TIMESTAMP = 268;
275
- static readonly KW_TO = 269;
276
- static readonly KW_TRAILING = 270;
277
- static readonly KW_TRANSACTION = 271;
278
- static readonly KW_TRIM = 272;
279
- static readonly KW_TRUE = 273;
280
- static readonly KW_TRUNCATE = 274;
281
- static readonly KW_TRY_CAST = 275;
282
- static readonly KW_TYPE = 276;
283
- static readonly KW_UESCAPE = 277;
284
- static readonly KW_UNBOUNDED = 278;
285
- static readonly KW_UNCOMMITTED = 279;
286
- static readonly KW_UNCONDITIONAL = 280;
287
- static readonly KW_UNION = 281;
288
- static readonly KW_UNIQUE = 282;
289
- static readonly KW_UNKNOWN = 283;
290
- static readonly KW_UNMATCHED = 284;
291
- static readonly KW_UNNEST = 285;
292
- static readonly KW_UNTIL = 286;
293
- static readonly KW_UPDATE = 287;
294
- static readonly KW_USE = 288;
295
- static readonly KW_USER = 289;
296
- static readonly KW_USING = 290;
297
- static readonly KW_UTF16 = 291;
298
- static readonly KW_UTF32 = 292;
299
- static readonly KW_UTF8 = 293;
300
- static readonly KW_VALIDATE = 294;
301
- static readonly KW_VALUE = 295;
302
- static readonly KW_VALUES = 296;
303
- static readonly KW_VERBOSE = 297;
304
- static readonly KW_VERSION = 298;
305
- static readonly KW_VIEW = 299;
306
- static readonly KW_WHEN = 300;
307
- static readonly KW_WHERE = 301;
308
- static readonly KW_WHILE = 302;
309
- static readonly KW_WINDOW = 303;
310
- static readonly KW_WITH = 304;
311
- static readonly KW_WITHIN = 305;
312
- static readonly KW_WITHOUT = 306;
313
- static readonly KW_WORK = 307;
314
- static readonly KW_WRAPPER = 308;
315
- static readonly KW_WRITE = 309;
316
- static readonly KW_YEAR = 310;
317
- static readonly KW_ZONE = 311;
318
- static readonly EQ = 312;
319
- static readonly NEQ = 313;
320
- static readonly LT = 314;
321
- static readonly LTE = 315;
322
- static readonly GT = 316;
323
- static readonly GTE = 317;
324
- static readonly PLUS = 318;
325
- static readonly MINUS = 319;
326
- static readonly ASTERISK = 320;
327
- static readonly SLASH = 321;
328
- static readonly PERCENT = 322;
329
- static readonly CONCAT = 323;
330
- static readonly QUESTION_MARK = 324;
331
- static readonly SEMICOLON = 325;
332
- static readonly STRING = 326;
333
- static readonly UNICODE_STRING = 327;
334
- static readonly BINARY_LITERAL = 328;
335
- static readonly INTEGER_VALUE = 329;
336
- static readonly DECIMAL_VALUE = 330;
337
- static readonly DOUBLE_VALUE = 331;
338
- static readonly IDENTIFIER = 332;
339
- static readonly DIGIT_IDENTIFIER = 333;
340
- static readonly QUOTED_IDENTIFIER = 334;
341
- static readonly BACKQUOTED_IDENTIFIER = 335;
342
- static readonly LINE_COMMENT = 336;
343
- static readonly BRACKETED_COMMENT = 337;
344
- static readonly WHITE_SPACE = 338;
345
- static readonly UNRECOGNIZED = 339;
346
- static readonly DELIMITER = 340;
50
+ static readonly KW_COALESCE = 44;
51
+ static readonly KW_COLUMN = 45;
52
+ static readonly KW_COLUMNS = 46;
53
+ static readonly KW_COMMENT = 47;
54
+ static readonly KW_COMMIT = 48;
55
+ static readonly KW_COMMITTED = 49;
56
+ static readonly KW_CONDITIONAL = 50;
57
+ static readonly KW_CONSTRAINT = 51;
58
+ static readonly KW_COUNT = 52;
59
+ static readonly KW_COPARTITION = 53;
60
+ static readonly KW_CREATE = 54;
61
+ static readonly KW_CROSS = 55;
62
+ static readonly KW_CUBE = 56;
63
+ static readonly KW_CURRENT = 57;
64
+ static readonly KW_CURRENT_CATALOG = 58;
65
+ static readonly KW_CURRENT_DATE = 59;
66
+ static readonly KW_CURRENT_PATH = 60;
67
+ static readonly KW_CURRENT_ROLE = 61;
68
+ static readonly KW_CURRENT_SCHEMA = 62;
69
+ static readonly KW_CURRENT_TIME = 63;
70
+ static readonly KW_CURRENT_TIMESTAMP = 64;
71
+ static readonly KW_CURRENT_USER = 65;
72
+ static readonly KW_DATA = 66;
73
+ static readonly KW_DATE = 67;
74
+ static readonly KW_DAY = 68;
75
+ static readonly KW_DEALLOCATE = 69;
76
+ static readonly KW_DECLARE = 70;
77
+ static readonly KW_DEFAULT = 71;
78
+ static readonly KW_DEFINE = 72;
79
+ static readonly KW_DEFINER = 73;
80
+ static readonly KW_DELETE = 74;
81
+ static readonly KW_DENY = 75;
82
+ static readonly KW_DESC = 76;
83
+ static readonly KW_DESCRIBE = 77;
84
+ static readonly KW_DESCRIPTOR = 78;
85
+ static readonly KW_DETERMINISTIC = 79;
86
+ static readonly KW_DISTINCT = 80;
87
+ static readonly KW_DISTRIBUTED = 81;
88
+ static readonly KW_DO = 82;
89
+ static readonly KW_DOUBLE = 83;
90
+ static readonly KW_DROP = 84;
91
+ static readonly KW_ELSE = 85;
92
+ static readonly KW_EMPTY = 86;
93
+ static readonly KW_ELSEIF = 87;
94
+ static readonly KW_ENCODING = 88;
95
+ static readonly KW_END = 89;
96
+ static readonly KW_ERROR = 90;
97
+ static readonly KW_ESCAPE = 91;
98
+ static readonly KW_EXCEPT = 92;
99
+ static readonly KW_EXCLUDING = 93;
100
+ static readonly KW_EXECUTE = 94;
101
+ static readonly KW_EXISTS = 95;
102
+ static readonly KW_EXPLAIN = 96;
103
+ static readonly KW_EXTRACT = 97;
104
+ static readonly KW_FALSE = 98;
105
+ static readonly KW_FETCH = 99;
106
+ static readonly KW_FILTER = 100;
107
+ static readonly KW_FINAL = 101;
108
+ static readonly KW_FIRST = 102;
109
+ static readonly KW_FOLLOWING = 103;
110
+ static readonly KW_FOR = 104;
111
+ static readonly KW_FORMAT = 105;
112
+ static readonly KW_FROM = 106;
113
+ static readonly KW_FULL = 107;
114
+ static readonly KW_FUNCTION = 108;
115
+ static readonly KW_FUNCTIONS = 109;
116
+ static readonly KW_GRACE = 110;
117
+ static readonly KW_GRANT = 111;
118
+ static readonly KW_GRANTED = 112;
119
+ static readonly KW_GRANTS = 113;
120
+ static readonly KW_GRAPHVIZ = 114;
121
+ static readonly KW_GROUP = 115;
122
+ static readonly KW_GROUPING = 116;
123
+ static readonly KW_GROUPS = 117;
124
+ static readonly KW_HAVING = 118;
125
+ static readonly KW_HOUR = 119;
126
+ static readonly KW_IF = 120;
127
+ static readonly KW_IGNORE = 121;
128
+ static readonly KW_IMMEDIATE = 122;
129
+ static readonly KW_IN = 123;
130
+ static readonly KW_INCLUDING = 124;
131
+ static readonly KW_INITIAL = 125;
132
+ static readonly KW_INNER = 126;
133
+ static readonly KW_INPUT = 127;
134
+ static readonly KW_INSERT = 128;
135
+ static readonly KW_INTERSECT = 129;
136
+ static readonly KW_INTERVAL = 130;
137
+ static readonly KW_INTO = 131;
138
+ static readonly KW_INVOKER = 132;
139
+ static readonly KW_IO = 133;
140
+ static readonly KW_IS = 134;
141
+ static readonly KW_ISOLATION = 135;
142
+ static readonly KW_ITERATE = 136;
143
+ static readonly KW_JOIN = 137;
144
+ static readonly KW_JSON = 138;
145
+ static readonly KW_JSON_ARRAY = 139;
146
+ static readonly KW_JSON_EXISTS = 140;
147
+ static readonly KW_JSON_OBJECT = 141;
148
+ static readonly KW_JSON_QUERY = 142;
149
+ static readonly KW_JSON_TABLE = 143;
150
+ static readonly KW_JSON_VALUE = 144;
151
+ static readonly KW_KEEP = 145;
152
+ static readonly KW_KEY = 146;
153
+ static readonly KW_KEYS = 147;
154
+ static readonly KW_LANGUAGE = 148;
155
+ static readonly KW_LAST = 149;
156
+ static readonly KW_LATERAL = 150;
157
+ static readonly KW_LEADING = 151;
158
+ static readonly KW_LEAVE = 152;
159
+ static readonly KW_LEFT = 153;
160
+ static readonly KW_LEVEL = 154;
161
+ static readonly KW_LIKE = 155;
162
+ static readonly KW_LIMIT = 156;
163
+ static readonly KW_LISTAGG = 157;
164
+ static readonly KW_LOCAL = 158;
165
+ static readonly KW_LOCALTIME = 159;
166
+ static readonly KW_LOCALTIMESTAMP = 160;
167
+ static readonly KW_LOGICAL = 161;
168
+ static readonly KW_LOOP = 162;
169
+ static readonly KW_MAP = 163;
170
+ static readonly KW_MATCH = 164;
171
+ static readonly KW_MATCHED = 165;
172
+ static readonly KW_MATCHES = 166;
173
+ static readonly KW_MATCH_RECOGNIZE = 167;
174
+ static readonly KW_MATERIALIZED = 168;
175
+ static readonly KW_MEASURES = 169;
176
+ static readonly KW_MERGE = 170;
177
+ static readonly KW_MINUTE = 171;
178
+ static readonly KW_MONTH = 172;
179
+ static readonly KW_NATURAL = 173;
180
+ static readonly KW_NESTED = 174;
181
+ static readonly KW_NEXT = 175;
182
+ static readonly KW_NFC = 176;
183
+ static readonly KW_NFD = 177;
184
+ static readonly KW_NFKC = 178;
185
+ static readonly KW_NFKD = 179;
186
+ static readonly KW_NO = 180;
187
+ static readonly KW_NONE = 181;
188
+ static readonly KW_NORMALIZE = 182;
189
+ static readonly KW_NOT = 183;
190
+ static readonly KW_NULL = 184;
191
+ static readonly KW_NULLIF = 185;
192
+ static readonly KW_NULLS = 186;
193
+ static readonly KW_OBJECT = 187;
194
+ static readonly KW_OF = 188;
195
+ static readonly KW_OFFSET = 189;
196
+ static readonly KW_OMIT = 190;
197
+ static readonly KW_ON = 191;
198
+ static readonly KW_ONE = 192;
199
+ static readonly KW_ONLY = 193;
200
+ static readonly KW_OPTION = 194;
201
+ static readonly KW_OR = 195;
202
+ static readonly KW_ORDER = 196;
203
+ static readonly KW_ORDINALITY = 197;
204
+ static readonly KW_OUTER = 198;
205
+ static readonly KW_OUTPUT = 199;
206
+ static readonly KW_OVER = 200;
207
+ static readonly KW_OVERFLOW = 201;
208
+ static readonly KW_PARTITION = 202;
209
+ static readonly KW_PARTITIONS = 203;
210
+ static readonly KW_PASSING = 204;
211
+ static readonly KW_PAST = 205;
212
+ static readonly KW_PATH = 206;
213
+ static readonly KW_PATTERN = 207;
214
+ static readonly KW_PER = 208;
215
+ static readonly KW_PERIOD = 209;
216
+ static readonly KW_PERMUTE = 210;
217
+ static readonly KW_PLAN = 211;
218
+ static readonly KW_POSITION = 212;
219
+ static readonly KW_PRECEDING = 213;
220
+ static readonly KW_PRECISION = 214;
221
+ static readonly KW_PREPARE = 215;
222
+ static readonly KW_PRIVILEGES = 216;
223
+ static readonly KW_PROPERTIES = 217;
224
+ static readonly KW_PRUNE = 218;
225
+ static readonly KW_QUOTES = 219;
226
+ static readonly KW_RANGE = 220;
227
+ static readonly KW_READ = 221;
228
+ static readonly KW_RECURSIVE = 222;
229
+ static readonly KW_REFRESH = 223;
230
+ static readonly KW_RENAME = 224;
231
+ static readonly KW_REPEAT = 225;
232
+ static readonly KW_REPEATABLE = 226;
233
+ static readonly KW_REPLACE = 227;
234
+ static readonly KW_RESET = 228;
235
+ static readonly KW_RESPECT = 229;
236
+ static readonly KW_RESTRICT = 230;
237
+ static readonly KW_RETURN = 231;
238
+ static readonly KW_RETURNING = 232;
239
+ static readonly KW_RETURNS = 233;
240
+ static readonly KW_REVOKE = 234;
241
+ static readonly KW_RIGHT = 235;
242
+ static readonly KW_ROLE = 236;
243
+ static readonly KW_ROLES = 237;
244
+ static readonly KW_ROLLBACK = 238;
245
+ static readonly KW_ROLLUP = 239;
246
+ static readonly KW_ROW = 240;
247
+ static readonly KW_ROWS = 241;
248
+ static readonly KW_RUNNING = 242;
249
+ static readonly KW_SCALAR = 243;
250
+ static readonly KW_SCHEMA = 244;
251
+ static readonly KW_SCHEMAS = 245;
252
+ static readonly KW_SECOND = 246;
253
+ static readonly KW_SECURITY = 247;
254
+ static readonly KW_SEEK = 248;
255
+ static readonly KW_SELECT = 249;
256
+ static readonly KW_SERIALIZABLE = 250;
257
+ static readonly KW_SESSION = 251;
258
+ static readonly KW_SET = 252;
259
+ static readonly KW_SETS = 253;
260
+ static readonly KW_SHOW = 254;
261
+ static readonly KW_SOME = 255;
262
+ static readonly KW_START = 256;
263
+ static readonly KW_STATS = 257;
264
+ static readonly KW_SUBSET = 258;
265
+ static readonly KW_SUBSTRING = 259;
266
+ static readonly KW_SYSTEM = 260;
267
+ static readonly KW_TABLE = 261;
268
+ static readonly KW_TABLES = 262;
269
+ static readonly KW_TABLESAMPLE = 263;
270
+ static readonly KW_TEXT = 264;
271
+ static readonly KW_TEXT_STRING = 265;
272
+ static readonly KW_THEN = 266;
273
+ static readonly KW_TIES = 267;
274
+ static readonly KW_TIME = 268;
275
+ static readonly KW_TIMESTAMP = 269;
276
+ static readonly KW_TO = 270;
277
+ static readonly KW_TRAILING = 271;
278
+ static readonly KW_TRANSACTION = 272;
279
+ static readonly KW_TRIM = 273;
280
+ static readonly KW_TRUE = 274;
281
+ static readonly KW_TRUNCATE = 275;
282
+ static readonly KW_TRY_CAST = 276;
283
+ static readonly KW_TYPE = 277;
284
+ static readonly KW_UESCAPE = 278;
285
+ static readonly KW_UNBOUNDED = 279;
286
+ static readonly KW_UNCOMMITTED = 280;
287
+ static readonly KW_UNCONDITIONAL = 281;
288
+ static readonly KW_UNION = 282;
289
+ static readonly KW_UNIQUE = 283;
290
+ static readonly KW_UNKNOWN = 284;
291
+ static readonly KW_UNMATCHED = 285;
292
+ static readonly KW_UNNEST = 286;
293
+ static readonly KW_UNTIL = 287;
294
+ static readonly KW_UPDATE = 288;
295
+ static readonly KW_USE = 289;
296
+ static readonly KW_USER = 290;
297
+ static readonly KW_USING = 291;
298
+ static readonly KW_UTF16 = 292;
299
+ static readonly KW_UTF32 = 293;
300
+ static readonly KW_UTF8 = 294;
301
+ static readonly KW_VALIDATE = 295;
302
+ static readonly KW_VALUE = 296;
303
+ static readonly KW_VALUES = 297;
304
+ static readonly KW_VERBOSE = 298;
305
+ static readonly KW_VERSION = 299;
306
+ static readonly KW_VIEW = 300;
307
+ static readonly KW_WHEN = 301;
308
+ static readonly KW_WHERE = 302;
309
+ static readonly KW_WHILE = 303;
310
+ static readonly KW_WINDOW = 304;
311
+ static readonly KW_WITH = 305;
312
+ static readonly KW_WITHIN = 306;
313
+ static readonly KW_WITHOUT = 307;
314
+ static readonly KW_WORK = 308;
315
+ static readonly KW_WRAPPER = 309;
316
+ static readonly KW_WRITE = 310;
317
+ static readonly KW_YEAR = 311;
318
+ static readonly KW_ZONE = 312;
319
+ static readonly EQ = 313;
320
+ static readonly NEQ = 314;
321
+ static readonly LT = 315;
322
+ static readonly LTE = 316;
323
+ static readonly GT = 317;
324
+ static readonly GTE = 318;
325
+ static readonly PLUS = 319;
326
+ static readonly MINUS = 320;
327
+ static readonly ASTERISK = 321;
328
+ static readonly SLASH = 322;
329
+ static readonly PERCENT = 323;
330
+ static readonly CONCAT = 324;
331
+ static readonly QUESTION_MARK = 325;
332
+ static readonly SEMICOLON = 326;
333
+ static readonly STRING = 327;
334
+ static readonly UNICODE_STRING = 328;
335
+ static readonly BINARY_LITERAL = 329;
336
+ static readonly INTEGER_VALUE = 330;
337
+ static readonly DECIMAL_VALUE = 331;
338
+ static readonly DOUBLE_VALUE = 332;
339
+ static readonly IDENTIFIER = 333;
340
+ static readonly DIGIT_IDENTIFIER = 334;
341
+ static readonly QUOTED_IDENTIFIER = 335;
342
+ static readonly BACKQUOTED_IDENTIFIER = 336;
343
+ static readonly LINE_COMMENT = 337;
344
+ static readonly BRACKETED_COMMENT = 338;
345
+ static readonly WHITE_SPACE = 339;
346
+ static readonly UNRECOGNIZED = 340;
347
+ static readonly DELIMITER = 341;
348
+ static readonly DOT = 342;
347
349
  static readonly RULE_program = 0;
348
350
  static readonly RULE_statements = 1;
349
351
  static readonly RULE_singleStatement = 2;
@@ -391,120 +393,123 @@ export declare class TrinoSqlParser extends SQLParserBase {
391
393
  static readonly RULE_relation = 44;
392
394
  static readonly RULE_joinType = 45;
393
395
  static readonly RULE_joinCriteria = 46;
394
- static readonly RULE_sampledRelation = 47;
395
- static readonly RULE_sampleType = 48;
396
- static readonly RULE_trimsSpecification = 49;
397
- static readonly RULE_listAggOverflowBehavior = 50;
398
- static readonly RULE_listAggCountIndication = 51;
399
- static readonly RULE_patternRecognition = 52;
400
- static readonly RULE_measureDefinition = 53;
401
- static readonly RULE_rowsPerMatch = 54;
402
- static readonly RULE_emptyMatchHandling = 55;
403
- static readonly RULE_skipTo = 56;
404
- static readonly RULE_subsetDefinition = 57;
405
- static readonly RULE_variableDefinition = 58;
406
- static readonly RULE_aliasedRelation = 59;
407
- static readonly RULE_columnListCreate = 60;
408
- static readonly RULE_columnList = 61;
409
- static readonly RULE_columnAliases = 62;
410
- static readonly RULE_relationPrimary = 63;
411
- static readonly RULE_relationSourceTable = 64;
412
- static readonly RULE_jsonTableColumn = 65;
413
- static readonly RULE_jsonTableSpecificPlan = 66;
414
- static readonly RULE_jsonTablePathName = 67;
415
- static readonly RULE_planPrimary = 68;
416
- static readonly RULE_jsonTableDefaultPlan = 69;
417
- static readonly RULE_tableFunctionCall = 70;
418
- static readonly RULE_tableFunctionArgument = 71;
419
- static readonly RULE_tableArgument = 72;
420
- static readonly RULE_tableArgumentRelation = 73;
421
- static readonly RULE_descriptorArgument = 74;
422
- static readonly RULE_descriptorField = 75;
423
- static readonly RULE_coPartitionTables = 76;
424
- static readonly RULE_expression = 77;
425
- static readonly RULE_booleanExpression = 78;
426
- static readonly RULE_predicate = 79;
427
- static readonly RULE_valueExpression = 80;
428
- static readonly RULE_primaryExpression = 81;
429
- static readonly RULE_jsonPathInvocation = 82;
430
- static readonly RULE_jsonValueExpression = 83;
431
- static readonly RULE_jsonRepresentation = 84;
432
- static readonly RULE_jsonArgument = 85;
433
- static readonly RULE_jsonExistsErrorBehavior = 86;
434
- static readonly RULE_jsonValueBehavior = 87;
435
- static readonly RULE_jsonQueryWrapperBehavior = 88;
436
- static readonly RULE_jsonQueryBehavior = 89;
437
- static readonly RULE_jsonObjectMember = 90;
438
- static readonly RULE_processingMode = 91;
439
- static readonly RULE_nullTreatment = 92;
440
- static readonly RULE_string = 93;
441
- static readonly RULE_timeZoneSpecifier = 94;
442
- static readonly RULE_comparisonOperator = 95;
443
- static readonly RULE_comparisonQuantifier = 96;
444
- static readonly RULE_booleanValue = 97;
445
- static readonly RULE_interval = 98;
446
- static readonly RULE_intervalField = 99;
447
- static readonly RULE_normalForm = 100;
448
- static readonly RULE_type = 101;
449
- static readonly RULE_rowField = 102;
450
- static readonly RULE_typeParameter = 103;
451
- static readonly RULE_whenClause = 104;
452
- static readonly RULE_filter = 105;
453
- static readonly RULE_mergeCase = 106;
454
- static readonly RULE_over = 107;
455
- static readonly RULE_windowFrame = 108;
456
- static readonly RULE_frameExtent = 109;
457
- static readonly RULE_frameBound = 110;
458
- static readonly RULE_rowPattern = 111;
459
- static readonly RULE_patternPrimary = 112;
460
- static readonly RULE_patternQuantifier = 113;
461
- static readonly RULE_updateAssignment = 114;
462
- static readonly RULE_explainOption = 115;
463
- static readonly RULE_transactionMode = 116;
464
- static readonly RULE_levelOfIsolation = 117;
465
- static readonly RULE_callArgument = 118;
466
- static readonly RULE_pathElement = 119;
467
- static readonly RULE_pathSpecification = 120;
468
- static readonly RULE_functionSpecification = 121;
469
- static readonly RULE_functionDeclaration = 122;
470
- static readonly RULE_functionSignature = 123;
471
- static readonly RULE_parameterDeclaration = 124;
472
- static readonly RULE_returnsClause = 125;
473
- static readonly RULE_routineCharacteristic = 126;
474
- static readonly RULE_controlStatement = 127;
475
- static readonly RULE_caseStatementWhenClause = 128;
476
- static readonly RULE_elseIfClause = 129;
477
- static readonly RULE_elseClause = 130;
478
- static readonly RULE_variableDeclaration = 131;
479
- static readonly RULE_sqlStatementList = 132;
480
- static readonly RULE_privilege = 133;
481
- static readonly RULE_entityKind = 134;
482
- static readonly RULE_grantObject = 135;
483
- static readonly RULE_tableOrViewName = 136;
484
- static readonly RULE_tableRef = 137;
485
- static readonly RULE_tableNameCreate = 138;
486
- static readonly RULE_viewRef = 139;
487
- static readonly RULE_viewNameCreate = 140;
488
- static readonly RULE_schemaRef = 141;
489
- static readonly RULE_schemaNameCreate = 142;
490
- static readonly RULE_catalogRef = 143;
491
- static readonly RULE_catalogNameCreate = 144;
492
- static readonly RULE_functionName = 145;
493
- static readonly RULE_functionNameCreate = 146;
494
- static readonly RULE_columnRef = 147;
495
- static readonly RULE_columnName = 148;
496
- static readonly RULE_columnNameCreate = 149;
497
- static readonly RULE_qualifiedName = 150;
498
- static readonly RULE_queryPeriod = 151;
499
- static readonly RULE_rangeType = 152;
500
- static readonly RULE_grantor = 153;
501
- static readonly RULE_principal = 154;
502
- static readonly RULE_roles = 155;
503
- static readonly RULE_privilegeOrRole = 156;
504
- static readonly RULE_identifier = 157;
505
- static readonly RULE_number = 158;
506
- static readonly RULE_authorizationUser = 159;
507
- static readonly RULE_nonReserved = 160;
396
+ static readonly RULE_joinColumnEquality = 47;
397
+ static readonly RULE_joinColumnReference = 48;
398
+ static readonly RULE_sampledRelation = 49;
399
+ static readonly RULE_sampleType = 50;
400
+ static readonly RULE_trimsSpecification = 51;
401
+ static readonly RULE_listAggOverflowBehavior = 52;
402
+ static readonly RULE_listAggCountIndication = 53;
403
+ static readonly RULE_patternRecognition = 54;
404
+ static readonly RULE_measureDefinition = 55;
405
+ static readonly RULE_rowsPerMatch = 56;
406
+ static readonly RULE_emptyMatchHandling = 57;
407
+ static readonly RULE_skipTo = 58;
408
+ static readonly RULE_subsetDefinition = 59;
409
+ static readonly RULE_variableDefinition = 60;
410
+ static readonly RULE_aliasedRelation = 61;
411
+ static readonly RULE_columnListCreate = 62;
412
+ static readonly RULE_columnList = 63;
413
+ static readonly RULE_columnAliases = 64;
414
+ static readonly RULE_relationPrimary = 65;
415
+ static readonly RULE_relationSourceTable = 66;
416
+ static readonly RULE_jsonTableColumn = 67;
417
+ static readonly RULE_jsonTableSpecificPlan = 68;
418
+ static readonly RULE_jsonTablePathName = 69;
419
+ static readonly RULE_planPrimary = 70;
420
+ static readonly RULE_jsonTableDefaultPlan = 71;
421
+ static readonly RULE_tableFunctionCall = 72;
422
+ static readonly RULE_tableFunctionArgument = 73;
423
+ static readonly RULE_tableArgument = 74;
424
+ static readonly RULE_tableArgumentRelation = 75;
425
+ static readonly RULE_descriptorArgument = 76;
426
+ static readonly RULE_descriptorField = 77;
427
+ static readonly RULE_coPartitionTables = 78;
428
+ static readonly RULE_expression = 79;
429
+ static readonly RULE_booleanExpression = 80;
430
+ static readonly RULE_predicate = 81;
431
+ static readonly RULE_valueExpression = 82;
432
+ static readonly RULE_primaryExpression = 83;
433
+ static readonly RULE_jsonPathInvocation = 84;
434
+ static readonly RULE_jsonValueExpression = 85;
435
+ static readonly RULE_jsonRepresentation = 86;
436
+ static readonly RULE_jsonArgument = 87;
437
+ static readonly RULE_jsonExistsErrorBehavior = 88;
438
+ static readonly RULE_jsonValueBehavior = 89;
439
+ static readonly RULE_jsonQueryWrapperBehavior = 90;
440
+ static readonly RULE_jsonQueryBehavior = 91;
441
+ static readonly RULE_jsonObjectMember = 92;
442
+ static readonly RULE_processingMode = 93;
443
+ static readonly RULE_nullTreatment = 94;
444
+ static readonly RULE_string = 95;
445
+ static readonly RULE_timeZoneSpecifier = 96;
446
+ static readonly RULE_comparisonOperator = 97;
447
+ static readonly RULE_comparisonQuantifier = 98;
448
+ static readonly RULE_booleanValue = 99;
449
+ static readonly RULE_interval = 100;
450
+ static readonly RULE_intervalField = 101;
451
+ static readonly RULE_normalForm = 102;
452
+ static readonly RULE_type = 103;
453
+ static readonly RULE_rowField = 104;
454
+ static readonly RULE_typeParameter = 105;
455
+ static readonly RULE_whenClause = 106;
456
+ static readonly RULE_filter = 107;
457
+ static readonly RULE_mergeCase = 108;
458
+ static readonly RULE_over = 109;
459
+ static readonly RULE_windowFrame = 110;
460
+ static readonly RULE_frameExtent = 111;
461
+ static readonly RULE_frameBound = 112;
462
+ static readonly RULE_rowPattern = 113;
463
+ static readonly RULE_patternPrimary = 114;
464
+ static readonly RULE_patternQuantifier = 115;
465
+ static readonly RULE_updateAssignment = 116;
466
+ static readonly RULE_explainOption = 117;
467
+ static readonly RULE_transactionMode = 118;
468
+ static readonly RULE_levelOfIsolation = 119;
469
+ static readonly RULE_callArgument = 120;
470
+ static readonly RULE_pathElement = 121;
471
+ static readonly RULE_pathSpecification = 122;
472
+ static readonly RULE_functionSpecification = 123;
473
+ static readonly RULE_functionDeclaration = 124;
474
+ static readonly RULE_functionSignature = 125;
475
+ static readonly RULE_parameterDeclaration = 126;
476
+ static readonly RULE_returnsClause = 127;
477
+ static readonly RULE_routineCharacteristic = 128;
478
+ static readonly RULE_controlStatement = 129;
479
+ static readonly RULE_caseStatementWhenClause = 130;
480
+ static readonly RULE_elseIfClause = 131;
481
+ static readonly RULE_elseClause = 132;
482
+ static readonly RULE_variableDeclaration = 133;
483
+ static readonly RULE_sqlStatementList = 134;
484
+ static readonly RULE_privilege = 135;
485
+ static readonly RULE_entityKind = 136;
486
+ static readonly RULE_grantObject = 137;
487
+ static readonly RULE_tableOrViewName = 138;
488
+ static readonly RULE_tableRef = 139;
489
+ static readonly RULE_tableNameCreate = 140;
490
+ static readonly RULE_viewRef = 141;
491
+ static readonly RULE_viewNameCreate = 142;
492
+ static readonly RULE_schemaRef = 143;
493
+ static readonly RULE_schemaNameCreate = 144;
494
+ static readonly RULE_catalogRef = 145;
495
+ static readonly RULE_catalogNameCreate = 146;
496
+ static readonly RULE_functionName = 147;
497
+ static readonly RULE_functionNameCreate = 148;
498
+ static readonly RULE_columnRef = 149;
499
+ static readonly RULE_emptyColumn = 150;
500
+ static readonly RULE_columnName = 151;
501
+ static readonly RULE_columnNameCreate = 152;
502
+ static readonly RULE_qualifiedName = 153;
503
+ static readonly RULE_queryPeriod = 154;
504
+ static readonly RULE_rangeType = 155;
505
+ static readonly RULE_grantor = 156;
506
+ static readonly RULE_principal = 157;
507
+ static readonly RULE_roles = 158;
508
+ static readonly RULE_privilegeOrRole = 159;
509
+ static readonly RULE_identifier = 160;
510
+ static readonly RULE_number = 161;
511
+ static readonly RULE_authorizationUser = 162;
512
+ static readonly RULE_nonReserved = 163;
508
513
  static readonly literalNames: (string | null)[];
509
514
  static readonly symbolicNames: (string | null)[];
510
515
  static readonly ruleNames: string[];
@@ -514,6 +519,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
514
519
  get ruleNames(): string[];
515
520
  get serializedATN(): number[];
516
521
  protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
522
+ notEntityCollecting(): boolean;
517
523
  constructor(input: antlr.TokenStream);
518
524
  program(): ProgramContext;
519
525
  statements(): StatementsContext;
@@ -564,6 +570,8 @@ export declare class TrinoSqlParser extends SQLParserBase {
564
570
  relation(_p: number): RelationContext;
565
571
  joinType(): JoinTypeContext;
566
572
  joinCriteria(): JoinCriteriaContext;
573
+ joinColumnEquality(): JoinColumnEqualityContext;
574
+ joinColumnReference(): JoinColumnReferenceContext;
567
575
  sampledRelation(): SampledRelationContext;
568
576
  sampleType(): SampleTypeContext;
569
577
  trimsSpecification(): TrimsSpecificationContext;
@@ -670,6 +678,7 @@ export declare class TrinoSqlParser extends SQLParserBase {
670
678
  functionName(): FunctionNameContext;
671
679
  functionNameCreate(): FunctionNameCreateContext;
672
680
  columnRef(): ColumnRefContext;
681
+ emptyColumn(): EmptyColumnContext;
673
682
  columnName(): ColumnNameContext;
674
683
  columnNameCreate(): ColumnNameCreateContext;
675
684
  qualifiedName(): QualifiedNameContext;
@@ -686,6 +695,8 @@ export declare class TrinoSqlParser extends SQLParserBase {
686
695
  sempred(localContext: antlr.RuleContext | null, ruleIndex: number, predIndex: number): boolean;
687
696
  private queryTerm_sempred;
688
697
  private relation_sempred;
698
+ private joinCriteria_sempred;
699
+ private joinColumnReference_sempred;
689
700
  private booleanExpression_sempred;
690
701
  private valueExpression_sempred;
691
702
  private primaryExpression_sempred;
@@ -2419,6 +2430,7 @@ export declare class JoinTypeContext extends antlr.ParserRuleContext {
2419
2430
  export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
2420
2431
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2421
2432
  KW_ON(): antlr.TerminalNode | null;
2433
+ joinColumnEquality(): JoinColumnEqualityContext | null;
2422
2434
  booleanExpression(): BooleanExpressionContext | null;
2423
2435
  KW_USING(): antlr.TerminalNode | null;
2424
2436
  identifier(): IdentifierContext[];
@@ -2428,6 +2440,29 @@ export declare class JoinCriteriaContext extends antlr.ParserRuleContext {
2428
2440
  exitRule(listener: TrinoSqlListener): void;
2429
2441
  accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
2430
2442
  }
2443
+ export declare class JoinColumnEqualityContext extends antlr.ParserRuleContext {
2444
+ _left?: JoinColumnReferenceContext;
2445
+ _right?: JoinColumnReferenceContext;
2446
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2447
+ EQ(): antlr.TerminalNode;
2448
+ joinColumnReference(): JoinColumnReferenceContext[];
2449
+ joinColumnReference(i: number): JoinColumnReferenceContext | null;
2450
+ get ruleIndex(): number;
2451
+ enterRule(listener: TrinoSqlListener): void;
2452
+ exitRule(listener: TrinoSqlListener): void;
2453
+ accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
2454
+ }
2455
+ export declare class JoinColumnReferenceContext extends antlr.ParserRuleContext {
2456
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
2457
+ identifier(): IdentifierContext | null;
2458
+ DOT(): antlr.TerminalNode | null;
2459
+ emptyColumn(): EmptyColumnContext | null;
2460
+ columnName(): ColumnNameContext | null;
2461
+ get ruleIndex(): number;
2462
+ enterRule(listener: TrinoSqlListener): void;
2463
+ exitRule(listener: TrinoSqlListener): void;
2464
+ accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
2465
+ }
2431
2466
  export declare class SampledRelationContext extends antlr.ParserRuleContext {
2432
2467
  _percentage?: ExpressionContext;
2433
2468
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
@@ -3423,6 +3458,15 @@ export declare class JsonExistsContext extends PrimaryExpressionContext {
3423
3458
  exitRule(listener: TrinoSqlListener): void;
3424
3459
  accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
3425
3460
  }
3461
+ export declare class CoalesceContext extends PrimaryExpressionContext {
3462
+ constructor(ctx: PrimaryExpressionContext);
3463
+ KW_COALESCE(): antlr.TerminalNode;
3464
+ expression(): ExpressionContext[];
3465
+ expression(i: number): ExpressionContext | null;
3466
+ enterRule(listener: TrinoSqlListener): void;
3467
+ exitRule(listener: TrinoSqlListener): void;
3468
+ accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
3469
+ }
3426
3470
  export declare class CurrentPathContext extends PrimaryExpressionContext {
3427
3471
  _name?: Token | null;
3428
3472
  constructor(ctx: PrimaryExpressionContext);
@@ -4877,6 +4921,13 @@ export declare class ColumnRefContext extends antlr.ParserRuleContext {
4877
4921
  exitRule(listener: TrinoSqlListener): void;
4878
4922
  accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
4879
4923
  }
4924
+ export declare class EmptyColumnContext extends antlr.ParserRuleContext {
4925
+ constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
4926
+ get ruleIndex(): number;
4927
+ enterRule(listener: TrinoSqlListener): void;
4928
+ exitRule(listener: TrinoSqlListener): void;
4929
+ accept<Result>(visitor: TrinoSqlVisitor<Result>): Result | null;
4930
+ }
4880
4931
  export declare class ColumnNameContext extends antlr.ParserRuleContext {
4881
4932
  constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
4882
4933
  qualifiedName(): QualifiedNameContext;
@@ -5104,6 +5155,7 @@ export declare class NonReservedContext extends antlr.ParserRuleContext {
5104
5155
  KW_CASCADE(): antlr.TerminalNode | null;
5105
5156
  KW_CATALOG(): antlr.TerminalNode | null;
5106
5157
  KW_CATALOGS(): antlr.TerminalNode | null;
5158
+ KW_COALESCE(): antlr.TerminalNode | null;
5107
5159
  KW_COLUMN(): antlr.TerminalNode | null;
5108
5160
  KW_COLUMNS(): antlr.TerminalNode | null;
5109
5161
  KW_COMMENT(): antlr.TerminalNode | null;