@devrev/meerkat-core 0.0.84 → 0.0.86

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 (59) hide show
  1. package/package.json +1 -1
  2. package/src/ast-serializer/ast-serializer.d.ts +1 -0
  3. package/src/ast-serializer/ast-serializer.js +12 -0
  4. package/src/ast-serializer/ast-serializer.js.map +1 -0
  5. package/src/ast-validator/dimension-validator.d.ts +10 -0
  6. package/src/ast-validator/dimension-validator.js +54 -0
  7. package/src/ast-validator/dimension-validator.js.map +1 -0
  8. package/src/ast-validator/index.d.ts +4 -0
  9. package/src/ast-validator/index.js +25 -0
  10. package/src/ast-validator/index.js.map +1 -0
  11. package/src/ast-validator/measure-validator.d.ts +11 -0
  12. package/src/ast-validator/measure-validator.js +162 -0
  13. package/src/ast-validator/measure-validator.js.map +1 -0
  14. package/src/ast-validator/tests/test-data.d.ts +2133 -0
  15. package/src/ast-validator/tests/test-data.js +2121 -0
  16. package/src/ast-validator/tests/test-data.js.map +1 -0
  17. package/src/ast-validator/types.d.ts +8 -0
  18. package/src/ast-validator/types.js +3 -0
  19. package/src/ast-validator/types.js.map +1 -0
  20. package/src/ast-validator/utils.d.ts +4 -0
  21. package/src/ast-validator/utils.js +35 -0
  22. package/src/ast-validator/utils.js.map +1 -0
  23. package/src/cube-filter-transformer/base-condition-builder/base-condition-builder.js +3 -2
  24. package/src/cube-filter-transformer/base-condition-builder/base-condition-builder.js.map +1 -1
  25. package/src/cube-filter-transformer/constant.d.ts +1 -0
  26. package/src/cube-filter-transformer/constant.js +10 -0
  27. package/src/cube-filter-transformer/constant.js.map +1 -0
  28. package/src/cube-filter-transformer/contains/contains.js +2 -1
  29. package/src/cube-filter-transformer/contains/contains.js.map +1 -1
  30. package/src/cube-filter-transformer/in/in.d.ts +1 -1
  31. package/src/cube-filter-transformer/in/in.js +22 -21
  32. package/src/cube-filter-transformer/in/in.js.map +1 -1
  33. package/src/cube-filter-transformer/not/not.d.ts +2 -2
  34. package/src/cube-filter-transformer/not/not.js.map +1 -1
  35. package/src/cube-filter-transformer/not-contains/not-contains.d.ts +1 -1
  36. package/src/cube-filter-transformer/not-contains/not-contains.js +2 -1
  37. package/src/cube-filter-transformer/not-contains/not-contains.js.map +1 -1
  38. package/src/cube-filter-transformer/not-in/not-in.d.ts +1 -1
  39. package/src/cube-filter-transformer/not-in/not-in.js +23 -22
  40. package/src/cube-filter-transformer/not-in/not-in.js.map +1 -1
  41. package/src/cube-filter-transformer/not-set/not-set.d.ts +1 -1
  42. package/src/cube-filter-transformer/not-set/not-set.js +6 -5
  43. package/src/cube-filter-transformer/not-set/not-set.js.map +1 -1
  44. package/src/cube-filter-transformer/set/set.d.ts +1 -1
  45. package/src/cube-filter-transformer/set/set.js +6 -5
  46. package/src/cube-filter-transformer/set/set.js.map +1 -1
  47. package/src/index.d.ts +4 -1
  48. package/src/index.js +3 -0
  49. package/src/index.js.map +1 -1
  50. package/src/types/duckdb-serialization-types/serialization/ParsedExpression.d.ts +17 -0
  51. package/src/types/duckdb-serialization-types/serialization/ParsedExpression.js.map +1 -1
  52. package/src/types/utils.d.ts +19 -0
  53. package/src/types/utils.js +108 -0
  54. package/src/types/utils.js.map +1 -0
  55. package/src/utils/base-ast.js +2 -3
  56. package/src/utils/base-ast.js.map +1 -1
  57. package/src/utils/get-column-names-from-ast.d.ts +2 -0
  58. package/src/utils/get-column-names-from-ast.js +45 -0
  59. package/src/utils/get-column-names-from-ast.js.map +1 -0
@@ -0,0 +1,2133 @@
1
+ import { ExpressionType, ParsedExpression, ResultModifierType } from '../../types/duckdb-serialization-types';
2
+ import { ExpressionClass } from '../../types/duckdb-serialization-types/serialization/Expression';
3
+ export declare const EMPTY_VALID_FUNCTIONS: Set<string>;
4
+ export declare const VALID_FUNCTIONS: Set<string>;
5
+ export declare const COLUMN_REF_NODE: ParsedExpression;
6
+ export declare const INVALID_NODE: ParsedExpression;
7
+ export declare const DIMENSION_TEST_CASES: ({
8
+ description: string;
9
+ node: {
10
+ class: ExpressionClass;
11
+ type: ExpressionType;
12
+ alias: string;
13
+ query_location: number;
14
+ column_names: string[];
15
+ value?: undefined;
16
+ child?: undefined;
17
+ cast_type?: undefined;
18
+ try_cast?: undefined;
19
+ children?: undefined;
20
+ function_name?: undefined;
21
+ schema?: undefined;
22
+ filter?: undefined;
23
+ order_bys?: undefined;
24
+ distinct?: undefined;
25
+ is_operator?: undefined;
26
+ export_state?: undefined;
27
+ case_checks?: undefined;
28
+ else_expr?: undefined;
29
+ };
30
+ validFunctions: Set<string>;
31
+ columnNames: string[];
32
+ expected: boolean;
33
+ } | {
34
+ description: string;
35
+ node: import("../../types/duckdb-serialization-types").ColumnRefExpression;
36
+ validFunctions: Set<string>;
37
+ columnNames: string[];
38
+ expected: boolean;
39
+ } | {
40
+ description: string;
41
+ node: {
42
+ class: ExpressionClass;
43
+ type: ExpressionType;
44
+ alias: string;
45
+ query_location: number;
46
+ value: string;
47
+ column_names?: undefined;
48
+ child?: undefined;
49
+ cast_type?: undefined;
50
+ try_cast?: undefined;
51
+ children?: undefined;
52
+ function_name?: undefined;
53
+ schema?: undefined;
54
+ filter?: undefined;
55
+ order_bys?: undefined;
56
+ distinct?: undefined;
57
+ is_operator?: undefined;
58
+ export_state?: undefined;
59
+ case_checks?: undefined;
60
+ else_expr?: undefined;
61
+ };
62
+ columnNames: never[];
63
+ validFunctions: Set<string>;
64
+ expected: boolean;
65
+ } | {
66
+ description: string;
67
+ node: {
68
+ class: ExpressionClass;
69
+ type: ExpressionType;
70
+ alias: string;
71
+ query_location: number;
72
+ child: {
73
+ class: ExpressionClass;
74
+ type: ExpressionType;
75
+ alias: string;
76
+ query_location: number;
77
+ column_names: string[];
78
+ };
79
+ cast_type: {
80
+ id: number;
81
+ };
82
+ try_cast: boolean;
83
+ column_names?: undefined;
84
+ value?: undefined;
85
+ children?: undefined;
86
+ function_name?: undefined;
87
+ schema?: undefined;
88
+ filter?: undefined;
89
+ order_bys?: undefined;
90
+ distinct?: undefined;
91
+ is_operator?: undefined;
92
+ export_state?: undefined;
93
+ case_checks?: undefined;
94
+ else_expr?: undefined;
95
+ };
96
+ validFunctions: Set<string>;
97
+ columnNames: string[];
98
+ expected: boolean;
99
+ } | {
100
+ description: string;
101
+ node: {
102
+ class: ExpressionClass;
103
+ type: ExpressionType;
104
+ alias: string;
105
+ query_location: number;
106
+ children: ({
107
+ class: ExpressionClass;
108
+ type: ExpressionType;
109
+ alias: string;
110
+ query_location: number;
111
+ column_names: string[];
112
+ value?: undefined;
113
+ } | {
114
+ class: ExpressionClass;
115
+ type: ExpressionType;
116
+ alias: string;
117
+ query_location: number;
118
+ value: {
119
+ type: {
120
+ id: string;
121
+ type_info: null;
122
+ };
123
+ is_null: boolean;
124
+ value: number;
125
+ };
126
+ column_names?: undefined;
127
+ })[];
128
+ column_names?: undefined;
129
+ value?: undefined;
130
+ child?: undefined;
131
+ cast_type?: undefined;
132
+ try_cast?: undefined;
133
+ function_name?: undefined;
134
+ schema?: undefined;
135
+ filter?: undefined;
136
+ order_bys?: undefined;
137
+ distinct?: undefined;
138
+ is_operator?: undefined;
139
+ export_state?: undefined;
140
+ case_checks?: undefined;
141
+ else_expr?: undefined;
142
+ };
143
+ validFunctions: Set<string>;
144
+ columnNames: string[];
145
+ expected: boolean;
146
+ } | {
147
+ description: string;
148
+ columnNames: string[];
149
+ node: {
150
+ class: ExpressionClass;
151
+ type: ExpressionType;
152
+ alias: string;
153
+ query_location: number;
154
+ function_name: string;
155
+ schema: string;
156
+ children: ({
157
+ class: ExpressionClass;
158
+ type: ExpressionType;
159
+ alias: string;
160
+ query_location: number;
161
+ column_names: string[];
162
+ value?: undefined;
163
+ } | {
164
+ class: ExpressionClass;
165
+ type: ExpressionType;
166
+ alias: string;
167
+ query_location: number;
168
+ value: {
169
+ type: {
170
+ id: string;
171
+ type_info: null;
172
+ };
173
+ is_null: boolean;
174
+ value: number;
175
+ };
176
+ column_names?: undefined;
177
+ })[];
178
+ filter: null;
179
+ order_bys: {
180
+ type: ResultModifierType;
181
+ orders: never[];
182
+ };
183
+ distinct: boolean;
184
+ is_operator: boolean;
185
+ export_state: boolean;
186
+ column_names?: undefined;
187
+ value?: undefined;
188
+ child?: undefined;
189
+ cast_type?: undefined;
190
+ try_cast?: undefined;
191
+ case_checks?: undefined;
192
+ else_expr?: undefined;
193
+ };
194
+ validFunctions: Set<string>;
195
+ expected: boolean;
196
+ } | {
197
+ description: string;
198
+ columnNames: string[];
199
+ node: {
200
+ class: ExpressionClass;
201
+ type: ExpressionType;
202
+ alias: string;
203
+ query_location: number;
204
+ case_checks: {
205
+ when_expr: {
206
+ class: ExpressionClass;
207
+ type: ExpressionType;
208
+ alias: string;
209
+ query_location: number;
210
+ left: {
211
+ class: ExpressionClass;
212
+ type: ExpressionType;
213
+ alias: string;
214
+ query_location: number;
215
+ column_names: string[];
216
+ };
217
+ right: {
218
+ class: ExpressionClass;
219
+ type: ExpressionType;
220
+ alias: string;
221
+ query_location: number;
222
+ column_names: string[];
223
+ };
224
+ };
225
+ then_expr: {
226
+ class: ExpressionClass;
227
+ type: ExpressionType;
228
+ alias: string;
229
+ query_location: number;
230
+ column_names: string[];
231
+ };
232
+ }[];
233
+ else_expr: {
234
+ class: ExpressionClass;
235
+ type: ExpressionType;
236
+ alias: string;
237
+ query_location: number;
238
+ value: {
239
+ type: {
240
+ id: string;
241
+ type_info: null;
242
+ };
243
+ is_null: boolean;
244
+ };
245
+ };
246
+ column_names?: undefined;
247
+ value?: undefined;
248
+ child?: undefined;
249
+ cast_type?: undefined;
250
+ try_cast?: undefined;
251
+ children?: undefined;
252
+ function_name?: undefined;
253
+ schema?: undefined;
254
+ filter?: undefined;
255
+ order_bys?: undefined;
256
+ distinct?: undefined;
257
+ is_operator?: undefined;
258
+ export_state?: undefined;
259
+ };
260
+ validFunctions: Set<string>;
261
+ expected: boolean;
262
+ })[];
263
+ export declare const MEASURE_TEST_CASES: ({
264
+ description: string;
265
+ query: string;
266
+ node: {
267
+ class: ExpressionClass;
268
+ type: ExpressionType;
269
+ alias: string;
270
+ query_location: number;
271
+ function_name: string;
272
+ schema: string;
273
+ children: never[];
274
+ filter?: undefined;
275
+ order_bys?: undefined;
276
+ distinct?: undefined;
277
+ is_operator?: undefined;
278
+ export_state?: undefined;
279
+ catalog?: undefined;
280
+ case_checks?: undefined;
281
+ else_expr?: undefined;
282
+ partitions?: undefined;
283
+ orders?: undefined;
284
+ start?: undefined;
285
+ end?: undefined;
286
+ start_expr?: undefined;
287
+ end_expr?: undefined;
288
+ offset_expr?: undefined;
289
+ default_expr?: undefined;
290
+ ignore_nulls?: undefined;
291
+ filter_expr?: undefined;
292
+ exclude_clause?: undefined;
293
+ subquery?: undefined;
294
+ child?: undefined;
295
+ comparison_type?: undefined;
296
+ };
297
+ validFunctions: Set<string>;
298
+ validScalarFunctions: Set<string>;
299
+ columnNames: never[];
300
+ expected: boolean;
301
+ error?: undefined;
302
+ } | {
303
+ description: string;
304
+ query: string;
305
+ node: {
306
+ class: ExpressionClass;
307
+ type: ExpressionType;
308
+ alias: string;
309
+ query_location: number;
310
+ function_name: string;
311
+ schema: string;
312
+ children: {
313
+ class: ExpressionClass;
314
+ type: ExpressionType;
315
+ query_location: number;
316
+ column_names: string[];
317
+ }[];
318
+ filter: null;
319
+ order_bys: {
320
+ type: ResultModifierType;
321
+ orders: never[];
322
+ };
323
+ distinct: boolean;
324
+ is_operator: boolean;
325
+ export_state: boolean;
326
+ catalog?: undefined;
327
+ case_checks?: undefined;
328
+ else_expr?: undefined;
329
+ partitions?: undefined;
330
+ orders?: undefined;
331
+ start?: undefined;
332
+ end?: undefined;
333
+ start_expr?: undefined;
334
+ end_expr?: undefined;
335
+ offset_expr?: undefined;
336
+ default_expr?: undefined;
337
+ ignore_nulls?: undefined;
338
+ filter_expr?: undefined;
339
+ exclude_clause?: undefined;
340
+ subquery?: undefined;
341
+ child?: undefined;
342
+ comparison_type?: undefined;
343
+ };
344
+ validFunctions: Set<string>;
345
+ validScalarFunctions: Set<string>;
346
+ columnNames: string[];
347
+ expected: boolean;
348
+ error?: undefined;
349
+ } | {
350
+ description: string;
351
+ query: string;
352
+ node: {
353
+ class: ExpressionClass;
354
+ type: ExpressionType;
355
+ alias: string;
356
+ query_location: number;
357
+ function_name: string;
358
+ schema: string;
359
+ children: {
360
+ class: ExpressionClass;
361
+ type: ExpressionType;
362
+ query_location: number;
363
+ column_names: string[];
364
+ }[];
365
+ filter: null;
366
+ order_bys: {
367
+ type: ResultModifierType;
368
+ orders: never[];
369
+ };
370
+ distinct: boolean;
371
+ is_operator: boolean;
372
+ export_state: boolean;
373
+ catalog?: undefined;
374
+ case_checks?: undefined;
375
+ else_expr?: undefined;
376
+ partitions?: undefined;
377
+ orders?: undefined;
378
+ start?: undefined;
379
+ end?: undefined;
380
+ start_expr?: undefined;
381
+ end_expr?: undefined;
382
+ offset_expr?: undefined;
383
+ default_expr?: undefined;
384
+ ignore_nulls?: undefined;
385
+ filter_expr?: undefined;
386
+ exclude_clause?: undefined;
387
+ subquery?: undefined;
388
+ child?: undefined;
389
+ comparison_type?: undefined;
390
+ };
391
+ validFunctions: Set<string>;
392
+ validScalarFunctions: Set<string>;
393
+ error: string;
394
+ expected: string;
395
+ columnNames: string[];
396
+ } | {
397
+ description: string;
398
+ columnNames: string[];
399
+ query: string;
400
+ node: {
401
+ class: ExpressionClass;
402
+ type: ExpressionType;
403
+ alias: string;
404
+ query_location: number;
405
+ function_name: string;
406
+ schema: string;
407
+ children: ({
408
+ class: ExpressionClass;
409
+ type: ExpressionType;
410
+ alias: string;
411
+ query_location: number;
412
+ function_name: string;
413
+ schema: string;
414
+ children: {
415
+ class: ExpressionClass;
416
+ type: ExpressionType;
417
+ alias: string;
418
+ query_location: number;
419
+ column_names: string[];
420
+ }[];
421
+ filter: null;
422
+ order_bys: {
423
+ type: ResultModifierType;
424
+ orders: never[];
425
+ };
426
+ distinct: boolean;
427
+ is_operator: boolean;
428
+ export_state: boolean;
429
+ catalog: string;
430
+ value?: undefined;
431
+ } | {
432
+ class: ExpressionClass;
433
+ type: ExpressionType;
434
+ alias: string;
435
+ query_location: number;
436
+ value: {
437
+ type: {
438
+ id: string;
439
+ type_info: null;
440
+ };
441
+ is_null: boolean;
442
+ value: number;
443
+ };
444
+ function_name?: undefined;
445
+ schema?: undefined;
446
+ children?: undefined;
447
+ filter?: undefined;
448
+ order_bys?: undefined;
449
+ distinct?: undefined;
450
+ is_operator?: undefined;
451
+ export_state?: undefined;
452
+ catalog?: undefined;
453
+ })[];
454
+ filter: null;
455
+ order_bys: {
456
+ type: ResultModifierType;
457
+ orders: never[];
458
+ };
459
+ distinct: boolean;
460
+ is_operator: boolean;
461
+ export_state: boolean;
462
+ catalog: string;
463
+ case_checks?: undefined;
464
+ else_expr?: undefined;
465
+ partitions?: undefined;
466
+ orders?: undefined;
467
+ start?: undefined;
468
+ end?: undefined;
469
+ start_expr?: undefined;
470
+ end_expr?: undefined;
471
+ offset_expr?: undefined;
472
+ default_expr?: undefined;
473
+ ignore_nulls?: undefined;
474
+ filter_expr?: undefined;
475
+ exclude_clause?: undefined;
476
+ subquery?: undefined;
477
+ child?: undefined;
478
+ comparison_type?: undefined;
479
+ };
480
+ validFunctions: Set<string>;
481
+ validScalarFunctions: Set<string>;
482
+ expected: boolean;
483
+ error?: undefined;
484
+ } | {
485
+ description: string;
486
+ query: string;
487
+ columnNames: string[];
488
+ node: {
489
+ class: ExpressionClass;
490
+ type: ExpressionType;
491
+ alias: string;
492
+ query_location: number;
493
+ case_checks: {
494
+ when_expr: {
495
+ class: ExpressionClass;
496
+ type: ExpressionType;
497
+ alias: string;
498
+ query_location: number;
499
+ left: {
500
+ class: ExpressionClass;
501
+ type: ExpressionType;
502
+ alias: string;
503
+ query_location: number;
504
+ function_name: string;
505
+ schema: string;
506
+ children: {
507
+ class: ExpressionClass;
508
+ type: ExpressionType;
509
+ alias: string;
510
+ query_location: number;
511
+ column_names: string[];
512
+ }[];
513
+ filter: null;
514
+ order_bys: {
515
+ type: ResultModifierType;
516
+ orders: never[];
517
+ };
518
+ distinct: boolean;
519
+ is_operator: boolean;
520
+ export_state: boolean;
521
+ catalog: string;
522
+ };
523
+ right: {
524
+ class: ExpressionClass;
525
+ type: ExpressionType;
526
+ alias: string;
527
+ query_location: number;
528
+ value: {
529
+ type: {
530
+ id: string;
531
+ type_info: null;
532
+ };
533
+ is_null: boolean;
534
+ value: number;
535
+ };
536
+ };
537
+ };
538
+ then_expr: {
539
+ class: ExpressionClass;
540
+ type: ExpressionType;
541
+ alias: string;
542
+ query_location: number;
543
+ function_name: string;
544
+ schema: string;
545
+ children: {
546
+ class: ExpressionClass;
547
+ type: ExpressionType;
548
+ alias: string;
549
+ query_location: number;
550
+ column_names: string[];
551
+ }[];
552
+ filter: null;
553
+ order_bys: {
554
+ type: ResultModifierType;
555
+ orders: never[];
556
+ };
557
+ distinct: boolean;
558
+ is_operator: boolean;
559
+ export_state: boolean;
560
+ catalog: string;
561
+ };
562
+ }[];
563
+ else_expr: {
564
+ class: ExpressionClass;
565
+ type: ExpressionType;
566
+ alias: string;
567
+ query_location: number;
568
+ value: {
569
+ type: {
570
+ id: string;
571
+ type_info: null;
572
+ };
573
+ is_null: boolean;
574
+ };
575
+ };
576
+ function_name?: undefined;
577
+ schema?: undefined;
578
+ children?: undefined;
579
+ filter?: undefined;
580
+ order_bys?: undefined;
581
+ distinct?: undefined;
582
+ is_operator?: undefined;
583
+ export_state?: undefined;
584
+ catalog?: undefined;
585
+ partitions?: undefined;
586
+ orders?: undefined;
587
+ start?: undefined;
588
+ end?: undefined;
589
+ start_expr?: undefined;
590
+ end_expr?: undefined;
591
+ offset_expr?: undefined;
592
+ default_expr?: undefined;
593
+ ignore_nulls?: undefined;
594
+ filter_expr?: undefined;
595
+ exclude_clause?: undefined;
596
+ subquery?: undefined;
597
+ child?: undefined;
598
+ comparison_type?: undefined;
599
+ };
600
+ validFunctions: Set<string>;
601
+ validScalarFunctions: Set<string>;
602
+ expected: boolean;
603
+ error?: undefined;
604
+ } | {
605
+ description: string;
606
+ columnNames: string[];
607
+ node: {
608
+ class: ExpressionClass;
609
+ type: ExpressionType;
610
+ alias: string;
611
+ query_location: number;
612
+ function_name: string;
613
+ schema: string;
614
+ children: {
615
+ class: string;
616
+ type: string;
617
+ alias: string;
618
+ query_location: number;
619
+ case_checks: {
620
+ when_expr: {
621
+ class: ExpressionClass;
622
+ type: string;
623
+ alias: string;
624
+ query_location: number;
625
+ left: {
626
+ class: ExpressionClass;
627
+ type: ExpressionType;
628
+ alias: string;
629
+ query_location: number;
630
+ function_name: string;
631
+ schema: string;
632
+ children: ({
633
+ class: ExpressionClass;
634
+ type: ExpressionType;
635
+ alias: string;
636
+ query_location: number;
637
+ column_names: string[];
638
+ value?: undefined;
639
+ } | {
640
+ class: ExpressionClass;
641
+ type: ExpressionType;
642
+ alias: string;
643
+ query_location: number;
644
+ value: {
645
+ type: {
646
+ id: string;
647
+ type_info: null;
648
+ };
649
+ is_null: boolean;
650
+ value: string;
651
+ };
652
+ column_names?: undefined;
653
+ })[];
654
+ filter: null;
655
+ order_bys: {
656
+ type: string;
657
+ orders: never[];
658
+ };
659
+ distinct: boolean;
660
+ is_operator: boolean;
661
+ export_state: boolean;
662
+ catalog: string;
663
+ };
664
+ right: {
665
+ class: ExpressionClass;
666
+ type: ExpressionType;
667
+ alias: string;
668
+ query_location: number;
669
+ value: {
670
+ type: {
671
+ id: string;
672
+ type_info: null;
673
+ };
674
+ is_null: boolean;
675
+ value: string;
676
+ };
677
+ };
678
+ };
679
+ then_expr: {
680
+ class: ExpressionClass;
681
+ type: ExpressionType;
682
+ alias: string;
683
+ query_location: number;
684
+ column_names: string[];
685
+ };
686
+ }[];
687
+ else_expr: {
688
+ class: ExpressionClass;
689
+ type: ExpressionType;
690
+ alias: string;
691
+ query_location: number;
692
+ value: {
693
+ type: {
694
+ id: string;
695
+ type_info: null;
696
+ };
697
+ is_null: boolean;
698
+ };
699
+ };
700
+ }[];
701
+ filter: null;
702
+ order_bys: {
703
+ type: string;
704
+ orders: never[];
705
+ };
706
+ distinct: boolean;
707
+ is_operator: boolean;
708
+ export_state: boolean;
709
+ catalog: string;
710
+ case_checks?: undefined;
711
+ else_expr?: undefined;
712
+ partitions?: undefined;
713
+ orders?: undefined;
714
+ start?: undefined;
715
+ end?: undefined;
716
+ start_expr?: undefined;
717
+ end_expr?: undefined;
718
+ offset_expr?: undefined;
719
+ default_expr?: undefined;
720
+ ignore_nulls?: undefined;
721
+ filter_expr?: undefined;
722
+ exclude_clause?: undefined;
723
+ subquery?: undefined;
724
+ child?: undefined;
725
+ comparison_type?: undefined;
726
+ };
727
+ validFunctions: Set<string>;
728
+ validScalarFunctions: Set<string>;
729
+ expected: boolean;
730
+ query: string;
731
+ error?: undefined;
732
+ } | {
733
+ description: string;
734
+ columnNames: string[];
735
+ node: {
736
+ class: ExpressionClass;
737
+ type: ExpressionType;
738
+ alias: string;
739
+ query_location: number;
740
+ function_name: string;
741
+ schema: string;
742
+ children: ({
743
+ class: ExpressionClass;
744
+ type: ExpressionType;
745
+ alias: string;
746
+ query_location: number;
747
+ function_name: string;
748
+ schema: string;
749
+ children: {
750
+ class: ExpressionClass;
751
+ type: ExpressionType;
752
+ alias: string;
753
+ query_location: number;
754
+ function_name: string;
755
+ schema: string;
756
+ children: {
757
+ class: ExpressionClass;
758
+ type: ExpressionType;
759
+ alias: string;
760
+ query_location: number;
761
+ column_names: string[];
762
+ }[];
763
+ filter: null;
764
+ order_bys: {
765
+ type: string;
766
+ orders: never[];
767
+ };
768
+ distinct: boolean;
769
+ is_operator: boolean;
770
+ export_state: boolean;
771
+ catalog: string;
772
+ }[];
773
+ filter: null;
774
+ order_bys: {
775
+ type: string;
776
+ orders: never[];
777
+ };
778
+ distinct: boolean;
779
+ is_operator: boolean;
780
+ export_state: boolean;
781
+ catalog: string;
782
+ } | {
783
+ class: ExpressionClass;
784
+ type: ExpressionType;
785
+ alias: string;
786
+ query_location: number;
787
+ function_name: string;
788
+ schema: string;
789
+ children: {
790
+ class: ExpressionClass;
791
+ type: ExpressionType;
792
+ alias: string;
793
+ query_location: number;
794
+ column_names: string[];
795
+ }[];
796
+ filter: null;
797
+ order_bys: {
798
+ type: string;
799
+ orders: never[];
800
+ };
801
+ distinct: boolean;
802
+ is_operator: boolean;
803
+ export_state: boolean;
804
+ catalog: string;
805
+ })[];
806
+ filter: null;
807
+ order_bys: {
808
+ type: string;
809
+ orders: never[];
810
+ };
811
+ distinct: boolean;
812
+ is_operator: boolean;
813
+ export_state: boolean;
814
+ catalog: string;
815
+ case_checks?: undefined;
816
+ else_expr?: undefined;
817
+ partitions?: undefined;
818
+ orders?: undefined;
819
+ start?: undefined;
820
+ end?: undefined;
821
+ start_expr?: undefined;
822
+ end_expr?: undefined;
823
+ offset_expr?: undefined;
824
+ default_expr?: undefined;
825
+ ignore_nulls?: undefined;
826
+ filter_expr?: undefined;
827
+ exclude_clause?: undefined;
828
+ subquery?: undefined;
829
+ child?: undefined;
830
+ comparison_type?: undefined;
831
+ };
832
+ validFunctions: Set<string>;
833
+ validScalarFunctions: Set<string>;
834
+ expected: boolean;
835
+ query: string;
836
+ error?: undefined;
837
+ } | {
838
+ description: string;
839
+ query: string;
840
+ columnNames: string[];
841
+ node: {
842
+ class: ExpressionClass;
843
+ type: ExpressionType;
844
+ alias: string;
845
+ query_location: number;
846
+ function_name: string;
847
+ schema: string;
848
+ children: ({
849
+ class: string;
850
+ type: string;
851
+ alias: string;
852
+ query_location: number;
853
+ child: {
854
+ class: ExpressionClass;
855
+ type: ExpressionType;
856
+ alias: string;
857
+ query_location: number;
858
+ function_name: string;
859
+ schema: string;
860
+ children: {
861
+ class: ExpressionClass;
862
+ type: ExpressionType;
863
+ alias: string;
864
+ query_location: number;
865
+ column_names: string[];
866
+ }[];
867
+ filter: null;
868
+ order_bys: {
869
+ type: string;
870
+ orders: never[];
871
+ };
872
+ distinct: boolean;
873
+ is_operator: boolean;
874
+ export_state: boolean;
875
+ catalog: string;
876
+ };
877
+ cast_type: {
878
+ id: string;
879
+ type_info: null;
880
+ };
881
+ try_cast: boolean;
882
+ function_name?: undefined;
883
+ schema?: undefined;
884
+ children?: undefined;
885
+ filter?: undefined;
886
+ order_bys?: undefined;
887
+ distinct?: undefined;
888
+ is_operator?: undefined;
889
+ export_state?: undefined;
890
+ catalog?: undefined;
891
+ } | {
892
+ class: ExpressionClass;
893
+ type: ExpressionType;
894
+ alias: string;
895
+ query_location: number;
896
+ function_name: string;
897
+ schema: string;
898
+ children: ({
899
+ class: ExpressionClass;
900
+ type: ExpressionType;
901
+ alias: string;
902
+ query_location: number;
903
+ function_name: string;
904
+ schema: string;
905
+ children: ({
906
+ class: ExpressionClass;
907
+ type: ExpressionType;
908
+ alias: string;
909
+ query_location: number;
910
+ function_name: string;
911
+ schema: string;
912
+ children: ({
913
+ class: ExpressionClass;
914
+ type: ExpressionType;
915
+ alias: string;
916
+ query_location: number;
917
+ function_name: string;
918
+ schema: string;
919
+ children: ({
920
+ class: ExpressionClass;
921
+ type: ExpressionType;
922
+ alias: string;
923
+ query_location: number;
924
+ value: {
925
+ type: {
926
+ id: string;
927
+ type_info: null;
928
+ };
929
+ is_null: boolean;
930
+ value: string;
931
+ };
932
+ function_name?: undefined;
933
+ schema?: undefined;
934
+ children?: undefined;
935
+ filter?: undefined;
936
+ order_bys?: undefined;
937
+ distinct?: undefined;
938
+ is_operator?: undefined;
939
+ export_state?: undefined;
940
+ catalog?: undefined;
941
+ } | {
942
+ class: ExpressionClass;
943
+ type: ExpressionType;
944
+ alias: string;
945
+ query_location: number;
946
+ function_name: string;
947
+ schema: string;
948
+ children: {
949
+ class: ExpressionClass;
950
+ type: ExpressionType;
951
+ alias: string;
952
+ query_location: number;
953
+ column_names: string[];
954
+ }[];
955
+ filter: null;
956
+ order_bys: {
957
+ type: string;
958
+ orders: never[];
959
+ };
960
+ distinct: boolean;
961
+ is_operator: boolean;
962
+ export_state: boolean;
963
+ catalog: string;
964
+ value?: undefined;
965
+ })[];
966
+ filter: null;
967
+ order_bys: {
968
+ type: string;
969
+ orders: never[];
970
+ };
971
+ distinct: boolean;
972
+ is_operator: boolean;
973
+ export_state: boolean;
974
+ catalog: string;
975
+ value?: undefined;
976
+ } | {
977
+ class: ExpressionClass;
978
+ type: ExpressionType;
979
+ alias: string;
980
+ query_location: number;
981
+ value: {
982
+ type: {
983
+ id: string;
984
+ type_info: null;
985
+ };
986
+ is_null: boolean;
987
+ value: number;
988
+ };
989
+ function_name?: undefined;
990
+ schema?: undefined;
991
+ children?: undefined;
992
+ filter?: undefined;
993
+ order_bys?: undefined;
994
+ distinct?: undefined;
995
+ is_operator?: undefined;
996
+ export_state?: undefined;
997
+ catalog?: undefined;
998
+ })[];
999
+ filter: null;
1000
+ order_bys: {
1001
+ type: string;
1002
+ orders: never[];
1003
+ };
1004
+ distinct: boolean;
1005
+ is_operator: boolean;
1006
+ export_state: boolean;
1007
+ catalog: string;
1008
+ value?: undefined;
1009
+ } | {
1010
+ class: ExpressionClass;
1011
+ type: ExpressionType;
1012
+ alias: string;
1013
+ query_location: number;
1014
+ value: {
1015
+ type: {
1016
+ id: string;
1017
+ type_info: null;
1018
+ };
1019
+ is_null: boolean;
1020
+ value: number;
1021
+ };
1022
+ function_name?: undefined;
1023
+ schema?: undefined;
1024
+ children?: undefined;
1025
+ filter?: undefined;
1026
+ order_bys?: undefined;
1027
+ distinct?: undefined;
1028
+ is_operator?: undefined;
1029
+ export_state?: undefined;
1030
+ catalog?: undefined;
1031
+ })[];
1032
+ filter: null;
1033
+ order_bys: {
1034
+ type: string;
1035
+ orders: never[];
1036
+ };
1037
+ distinct: boolean;
1038
+ is_operator: boolean;
1039
+ export_state: boolean;
1040
+ catalog: string;
1041
+ value?: undefined;
1042
+ } | {
1043
+ class: ExpressionClass;
1044
+ type: ExpressionType;
1045
+ alias: string;
1046
+ query_location: number;
1047
+ value: {
1048
+ type: {
1049
+ id: string;
1050
+ type_info: null;
1051
+ };
1052
+ is_null: boolean;
1053
+ value: number;
1054
+ };
1055
+ function_name?: undefined;
1056
+ schema?: undefined;
1057
+ children?: undefined;
1058
+ filter?: undefined;
1059
+ order_bys?: undefined;
1060
+ distinct?: undefined;
1061
+ is_operator?: undefined;
1062
+ export_state?: undefined;
1063
+ catalog?: undefined;
1064
+ })[];
1065
+ filter: null;
1066
+ order_bys: {
1067
+ type: string;
1068
+ orders: never[];
1069
+ };
1070
+ distinct: boolean;
1071
+ is_operator: boolean;
1072
+ export_state: boolean;
1073
+ catalog: string;
1074
+ child?: undefined;
1075
+ cast_type?: undefined;
1076
+ try_cast?: undefined;
1077
+ })[];
1078
+ filter: null;
1079
+ order_bys: {
1080
+ type: string;
1081
+ orders: never[];
1082
+ };
1083
+ distinct: boolean;
1084
+ is_operator: boolean;
1085
+ export_state: boolean;
1086
+ catalog: string;
1087
+ case_checks?: undefined;
1088
+ else_expr?: undefined;
1089
+ partitions?: undefined;
1090
+ orders?: undefined;
1091
+ start?: undefined;
1092
+ end?: undefined;
1093
+ start_expr?: undefined;
1094
+ end_expr?: undefined;
1095
+ offset_expr?: undefined;
1096
+ default_expr?: undefined;
1097
+ ignore_nulls?: undefined;
1098
+ filter_expr?: undefined;
1099
+ exclude_clause?: undefined;
1100
+ subquery?: undefined;
1101
+ child?: undefined;
1102
+ comparison_type?: undefined;
1103
+ };
1104
+ validFunctions: Set<string>;
1105
+ validScalarFunctions: Set<string>;
1106
+ expected: boolean;
1107
+ error?: undefined;
1108
+ } | {
1109
+ description: string;
1110
+ query: string;
1111
+ columnNames: string[];
1112
+ node: {
1113
+ class: ExpressionClass;
1114
+ type: ExpressionType;
1115
+ alias: string;
1116
+ query_location: number;
1117
+ children: ({
1118
+ class: ExpressionClass;
1119
+ type: ExpressionType;
1120
+ alias: string;
1121
+ query_location: number;
1122
+ function_name: string;
1123
+ schema: string;
1124
+ children: {
1125
+ class: ExpressionClass;
1126
+ type: ExpressionType;
1127
+ alias: string;
1128
+ query_location: number;
1129
+ column_names: string[];
1130
+ }[];
1131
+ filter: {
1132
+ class: ExpressionClass;
1133
+ type: ExpressionType;
1134
+ alias: string;
1135
+ query_location: number;
1136
+ left: {
1137
+ class: ExpressionClass;
1138
+ type: ExpressionType;
1139
+ alias: string;
1140
+ query_location: number;
1141
+ column_names: string[];
1142
+ };
1143
+ right: {
1144
+ class: ExpressionClass;
1145
+ type: ExpressionType;
1146
+ alias: string;
1147
+ query_location: number;
1148
+ column_names: string[];
1149
+ };
1150
+ };
1151
+ order_bys: {
1152
+ type: string;
1153
+ orders: never[];
1154
+ };
1155
+ distinct: boolean;
1156
+ is_operator: boolean;
1157
+ export_state: boolean;
1158
+ catalog: string;
1159
+ value?: undefined;
1160
+ } | {
1161
+ class: ExpressionClass;
1162
+ type: ExpressionType;
1163
+ alias: string;
1164
+ query_location: number;
1165
+ value: {
1166
+ type: {
1167
+ id: string;
1168
+ type_info: null;
1169
+ };
1170
+ is_null: boolean;
1171
+ value: number;
1172
+ };
1173
+ function_name?: undefined;
1174
+ schema?: undefined;
1175
+ children?: undefined;
1176
+ filter?: undefined;
1177
+ order_bys?: undefined;
1178
+ distinct?: undefined;
1179
+ is_operator?: undefined;
1180
+ export_state?: undefined;
1181
+ catalog?: undefined;
1182
+ })[];
1183
+ function_name?: undefined;
1184
+ schema?: undefined;
1185
+ filter?: undefined;
1186
+ order_bys?: undefined;
1187
+ distinct?: undefined;
1188
+ is_operator?: undefined;
1189
+ export_state?: undefined;
1190
+ catalog?: undefined;
1191
+ case_checks?: undefined;
1192
+ else_expr?: undefined;
1193
+ partitions?: undefined;
1194
+ orders?: undefined;
1195
+ start?: undefined;
1196
+ end?: undefined;
1197
+ start_expr?: undefined;
1198
+ end_expr?: undefined;
1199
+ offset_expr?: undefined;
1200
+ default_expr?: undefined;
1201
+ ignore_nulls?: undefined;
1202
+ filter_expr?: undefined;
1203
+ exclude_clause?: undefined;
1204
+ subquery?: undefined;
1205
+ child?: undefined;
1206
+ comparison_type?: undefined;
1207
+ };
1208
+ validFunctions: Set<string>;
1209
+ validScalarFunctions: Set<string>;
1210
+ expected: boolean;
1211
+ error?: undefined;
1212
+ } | {
1213
+ description: string;
1214
+ query: string;
1215
+ columnNames: string[];
1216
+ node: {
1217
+ class: ExpressionClass;
1218
+ type: ExpressionType;
1219
+ alias: string;
1220
+ query_location: number;
1221
+ function_name: string;
1222
+ schema: string;
1223
+ catalog: string;
1224
+ children: {
1225
+ class: ExpressionClass;
1226
+ type: ExpressionType;
1227
+ alias: string;
1228
+ query_location: number;
1229
+ function_name: string;
1230
+ schema: string;
1231
+ children: {
1232
+ class: ExpressionClass;
1233
+ type: ExpressionType;
1234
+ alias: string;
1235
+ query_location: number;
1236
+ column_names: string[];
1237
+ }[];
1238
+ filter: null;
1239
+ order_bys: {
1240
+ type: string;
1241
+ orders: never[];
1242
+ };
1243
+ distinct: boolean;
1244
+ is_operator: boolean;
1245
+ export_state: boolean;
1246
+ catalog: string;
1247
+ }[];
1248
+ partitions: never[];
1249
+ orders: {
1250
+ type: string;
1251
+ null_order: string;
1252
+ expression: {
1253
+ class: string;
1254
+ type: string;
1255
+ alias: string;
1256
+ query_location: number;
1257
+ children: ({
1258
+ class: ExpressionClass;
1259
+ type: ExpressionType;
1260
+ alias: string;
1261
+ query_location: number;
1262
+ column_names: string[];
1263
+ value?: undefined;
1264
+ } | {
1265
+ class: ExpressionClass;
1266
+ type: ExpressionType;
1267
+ alias: string;
1268
+ query_location: number;
1269
+ value: {
1270
+ type: {
1271
+ id: string;
1272
+ type_info: null;
1273
+ };
1274
+ is_null: boolean;
1275
+ value: string;
1276
+ };
1277
+ column_names?: undefined;
1278
+ })[];
1279
+ };
1280
+ }[];
1281
+ start: string;
1282
+ end: string;
1283
+ start_expr: {
1284
+ class: ExpressionClass;
1285
+ type: ExpressionType;
1286
+ alias: string;
1287
+ query_location: number;
1288
+ value: {
1289
+ type: {
1290
+ id: string;
1291
+ type_info: null;
1292
+ };
1293
+ is_null: boolean;
1294
+ value: number;
1295
+ };
1296
+ };
1297
+ end_expr: null;
1298
+ offset_expr: null;
1299
+ default_expr: null;
1300
+ ignore_nulls: boolean;
1301
+ filter_expr: null;
1302
+ exclude_clause: string;
1303
+ distinct: boolean;
1304
+ filter?: undefined;
1305
+ order_bys?: undefined;
1306
+ is_operator?: undefined;
1307
+ export_state?: undefined;
1308
+ case_checks?: undefined;
1309
+ else_expr?: undefined;
1310
+ subquery?: undefined;
1311
+ child?: undefined;
1312
+ comparison_type?: undefined;
1313
+ };
1314
+ validFunctions: Set<string>;
1315
+ validScalarFunctions: Set<string>;
1316
+ expected: boolean;
1317
+ error?: undefined;
1318
+ } | {
1319
+ description: string;
1320
+ columnNames: string[];
1321
+ query: string;
1322
+ node: {
1323
+ class: ExpressionClass;
1324
+ type: ExpressionType;
1325
+ alias: string;
1326
+ query_location: number;
1327
+ subquery: {
1328
+ node: {
1329
+ type: string;
1330
+ modifiers: never[];
1331
+ cte_map: {
1332
+ map: never[];
1333
+ };
1334
+ select_list: {
1335
+ class: ExpressionClass;
1336
+ type: ExpressionType;
1337
+ alias: string;
1338
+ query_location: number;
1339
+ case_checks: {
1340
+ when_expr: {
1341
+ class: ExpressionClass;
1342
+ type: ExpressionType;
1343
+ alias: string;
1344
+ query_location: number;
1345
+ left: {
1346
+ class: ExpressionClass;
1347
+ type: ExpressionType;
1348
+ alias: string;
1349
+ query_location: number;
1350
+ function_name: string;
1351
+ schema: string;
1352
+ children: ({
1353
+ class: ExpressionClass;
1354
+ type: ExpressionType;
1355
+ alias: string;
1356
+ query_location: number;
1357
+ function_name: string;
1358
+ schema: string;
1359
+ children: {
1360
+ class: ExpressionClass;
1361
+ type: ExpressionType;
1362
+ alias: string;
1363
+ query_location: number;
1364
+ case_checks: {
1365
+ when_expr: {
1366
+ class: ExpressionClass;
1367
+ type: ExpressionType;
1368
+ alias: string;
1369
+ query_location: number;
1370
+ left: {
1371
+ class: ExpressionClass;
1372
+ type: ExpressionType;
1373
+ alias: string;
1374
+ query_location: number;
1375
+ column_names: string[];
1376
+ };
1377
+ right: {
1378
+ class: ExpressionClass;
1379
+ type: ExpressionType;
1380
+ alias: string;
1381
+ query_location: number;
1382
+ value: {
1383
+ type: {
1384
+ id: string;
1385
+ type_info: null;
1386
+ };
1387
+ is_null: boolean;
1388
+ value: string;
1389
+ };
1390
+ };
1391
+ };
1392
+ then_expr: {
1393
+ class: ExpressionClass;
1394
+ type: ExpressionType;
1395
+ alias: string;
1396
+ query_location: number;
1397
+ column_names: string[];
1398
+ };
1399
+ }[];
1400
+ else_expr: {
1401
+ class: ExpressionClass;
1402
+ type: ExpressionType;
1403
+ alias: string;
1404
+ query_location: number;
1405
+ value: {
1406
+ type: {
1407
+ id: string;
1408
+ type_info: null;
1409
+ };
1410
+ is_null: boolean;
1411
+ };
1412
+ };
1413
+ }[];
1414
+ filter: null;
1415
+ order_bys: {
1416
+ type: string;
1417
+ orders: never[];
1418
+ };
1419
+ distinct: boolean;
1420
+ is_operator: boolean;
1421
+ export_state: boolean;
1422
+ catalog: string;
1423
+ } | {
1424
+ class: ExpressionClass;
1425
+ type: ExpressionType;
1426
+ alias: string;
1427
+ query_location: number;
1428
+ function_name: string;
1429
+ schema: string;
1430
+ children: {
1431
+ class: ExpressionClass;
1432
+ type: ExpressionType;
1433
+ alias: string;
1434
+ query_location: number;
1435
+ case_checks: {
1436
+ when_expr: {
1437
+ class: ExpressionClass;
1438
+ type: ExpressionType;
1439
+ alias: string;
1440
+ query_location: number;
1441
+ children: ({
1442
+ class: ExpressionClass;
1443
+ type: ExpressionType;
1444
+ alias: string;
1445
+ query_location: number;
1446
+ left: {
1447
+ class: ExpressionClass;
1448
+ type: ExpressionType;
1449
+ alias: string;
1450
+ query_location: number;
1451
+ column_names: string[];
1452
+ function_name?: undefined;
1453
+ schema?: undefined;
1454
+ children?: undefined;
1455
+ filter?: undefined;
1456
+ order_bys?: undefined;
1457
+ distinct?: undefined;
1458
+ is_operator?: undefined;
1459
+ export_state?: undefined;
1460
+ catalog?: undefined;
1461
+ };
1462
+ right: {
1463
+ class: ExpressionClass;
1464
+ type: ExpressionType;
1465
+ alias: string;
1466
+ query_location: number;
1467
+ value: {
1468
+ type: {
1469
+ id: string;
1470
+ type_info: null;
1471
+ };
1472
+ is_null: boolean;
1473
+ value: string;
1474
+ };
1475
+ };
1476
+ children?: undefined;
1477
+ } | {
1478
+ class: ExpressionClass;
1479
+ type: string;
1480
+ alias: string;
1481
+ query_location: number;
1482
+ left: {
1483
+ class: string;
1484
+ type: string;
1485
+ alias: string;
1486
+ query_location: number;
1487
+ function_name: string;
1488
+ schema: string;
1489
+ children: {
1490
+ class: ExpressionClass;
1491
+ type: ExpressionType;
1492
+ alias: string;
1493
+ query_location: number;
1494
+ column_names: string[];
1495
+ }[];
1496
+ filter: null;
1497
+ order_bys: {
1498
+ type: string;
1499
+ orders: never[];
1500
+ };
1501
+ distinct: boolean;
1502
+ is_operator: boolean;
1503
+ export_state: boolean;
1504
+ catalog: string;
1505
+ column_names?: undefined;
1506
+ };
1507
+ right: {
1508
+ class: ExpressionClass;
1509
+ type: ExpressionType;
1510
+ alias: string;
1511
+ query_location: number;
1512
+ value: {
1513
+ type: {
1514
+ id: string;
1515
+ type_info: null;
1516
+ };
1517
+ is_null: boolean;
1518
+ value: number;
1519
+ };
1520
+ };
1521
+ children?: undefined;
1522
+ } | {
1523
+ class: string;
1524
+ type: string;
1525
+ alias: string;
1526
+ query_location: number;
1527
+ children: ({
1528
+ class: ExpressionClass;
1529
+ type: string;
1530
+ alias: string;
1531
+ query_location: number;
1532
+ left: {
1533
+ class: ExpressionClass;
1534
+ type: ExpressionType;
1535
+ alias: string;
1536
+ query_location: number;
1537
+ column_names: string[];
1538
+ };
1539
+ right: {
1540
+ class: ExpressionClass;
1541
+ type: ExpressionType;
1542
+ alias: string;
1543
+ query_location: number;
1544
+ value: {
1545
+ type: {
1546
+ id: string;
1547
+ type_info: null;
1548
+ };
1549
+ is_null: boolean;
1550
+ value: number;
1551
+ };
1552
+ };
1553
+ children?: undefined;
1554
+ } | {
1555
+ class: string;
1556
+ type: string;
1557
+ alias: string;
1558
+ query_location: number;
1559
+ children: {
1560
+ class: ExpressionClass;
1561
+ type: ExpressionType;
1562
+ alias: string;
1563
+ query_location: number;
1564
+ column_names: string[];
1565
+ }[];
1566
+ left?: undefined;
1567
+ right?: undefined;
1568
+ })[];
1569
+ left?: undefined;
1570
+ right?: undefined;
1571
+ })[];
1572
+ };
1573
+ then_expr: {
1574
+ class: ExpressionClass;
1575
+ type: ExpressionType;
1576
+ alias: string;
1577
+ query_location: number;
1578
+ column_names: string[];
1579
+ };
1580
+ }[];
1581
+ else_expr: {
1582
+ class: ExpressionClass;
1583
+ type: ExpressionType;
1584
+ alias: string;
1585
+ query_location: number;
1586
+ value: {
1587
+ type: {
1588
+ id: string;
1589
+ type_info: null;
1590
+ };
1591
+ is_null: boolean;
1592
+ };
1593
+ };
1594
+ }[];
1595
+ filter: null;
1596
+ order_bys: {
1597
+ type: string;
1598
+ orders: never[];
1599
+ };
1600
+ distinct: boolean;
1601
+ is_operator: boolean;
1602
+ export_state: boolean;
1603
+ catalog: string;
1604
+ })[];
1605
+ filter: null;
1606
+ order_bys: {
1607
+ type: string;
1608
+ orders: never[];
1609
+ };
1610
+ distinct: boolean;
1611
+ is_operator: boolean;
1612
+ export_state: boolean;
1613
+ catalog: string;
1614
+ };
1615
+ right: {
1616
+ class: ExpressionClass;
1617
+ type: ExpressionType;
1618
+ alias: string;
1619
+ query_location: number;
1620
+ value: {
1621
+ type: {
1622
+ id: string;
1623
+ type_info: null;
1624
+ };
1625
+ is_null: boolean;
1626
+ value: number;
1627
+ };
1628
+ };
1629
+ };
1630
+ then_expr: {
1631
+ class: ExpressionClass;
1632
+ type: ExpressionType;
1633
+ alias: string;
1634
+ query_location: number;
1635
+ function_name: string;
1636
+ schema: string;
1637
+ children: ({
1638
+ class: ExpressionClass;
1639
+ type: ExpressionType;
1640
+ alias: string;
1641
+ query_location: number;
1642
+ value: {
1643
+ type: {
1644
+ id: string;
1645
+ type_info: null;
1646
+ };
1647
+ is_null: boolean;
1648
+ value: number;
1649
+ };
1650
+ function_name?: undefined;
1651
+ schema?: undefined;
1652
+ children?: undefined;
1653
+ filter?: undefined;
1654
+ order_bys?: undefined;
1655
+ distinct?: undefined;
1656
+ is_operator?: undefined;
1657
+ export_state?: undefined;
1658
+ catalog?: undefined;
1659
+ } | {
1660
+ class: ExpressionClass;
1661
+ type: ExpressionType;
1662
+ alias: string;
1663
+ query_location: number;
1664
+ function_name: string;
1665
+ schema: string;
1666
+ children: ({
1667
+ class: ExpressionClass;
1668
+ type: ExpressionType;
1669
+ alias: string;
1670
+ query_location: number;
1671
+ function_name: string;
1672
+ schema: string;
1673
+ children: ({
1674
+ class: ExpressionClass;
1675
+ type: ExpressionType;
1676
+ alias: string;
1677
+ query_location: number;
1678
+ function_name: string;
1679
+ schema: string;
1680
+ children: {
1681
+ class: ExpressionClass;
1682
+ type: ExpressionType;
1683
+ alias: string;
1684
+ query_location: number;
1685
+ case_checks: {
1686
+ when_expr: {
1687
+ class: ExpressionClass;
1688
+ type: ExpressionType;
1689
+ alias: string;
1690
+ query_location: number;
1691
+ left: {
1692
+ class: ExpressionClass;
1693
+ type: ExpressionType;
1694
+ alias: string;
1695
+ query_location: number;
1696
+ column_names: string[];
1697
+ };
1698
+ right: {
1699
+ class: ExpressionClass;
1700
+ type: ExpressionType;
1701
+ alias: string;
1702
+ query_location: number;
1703
+ value: {
1704
+ type: {
1705
+ id: string;
1706
+ type_info: null;
1707
+ };
1708
+ is_null: boolean;
1709
+ value: string;
1710
+ };
1711
+ };
1712
+ };
1713
+ then_expr: {
1714
+ class: ExpressionClass;
1715
+ type: ExpressionType;
1716
+ alias: string;
1717
+ query_location: number;
1718
+ column_names: string[];
1719
+ };
1720
+ }[];
1721
+ else_expr: {
1722
+ class: ExpressionClass;
1723
+ type: ExpressionType;
1724
+ alias: string;
1725
+ query_location: number;
1726
+ value: {
1727
+ type: {
1728
+ id: string;
1729
+ type_info: null;
1730
+ };
1731
+ is_null: boolean;
1732
+ };
1733
+ };
1734
+ }[];
1735
+ filter: null;
1736
+ order_bys: {
1737
+ type: string;
1738
+ orders: never[];
1739
+ };
1740
+ distinct: boolean;
1741
+ is_operator: boolean;
1742
+ export_state: boolean;
1743
+ catalog: string;
1744
+ value?: undefined;
1745
+ } | {
1746
+ class: ExpressionClass;
1747
+ type: ExpressionType;
1748
+ alias: string;
1749
+ query_location: number;
1750
+ value: {
1751
+ type: {
1752
+ id: string;
1753
+ type_info: {
1754
+ type: string;
1755
+ alias: string;
1756
+ modifiers: never[];
1757
+ width: number;
1758
+ scale: number;
1759
+ };
1760
+ };
1761
+ is_null: boolean;
1762
+ value: number;
1763
+ };
1764
+ function_name?: undefined;
1765
+ schema?: undefined;
1766
+ children?: undefined;
1767
+ filter?: undefined;
1768
+ order_bys?: undefined;
1769
+ distinct?: undefined;
1770
+ is_operator?: undefined;
1771
+ export_state?: undefined;
1772
+ catalog?: undefined;
1773
+ })[];
1774
+ filter: null;
1775
+ order_bys: {
1776
+ type: string;
1777
+ orders: never[];
1778
+ };
1779
+ distinct: boolean;
1780
+ is_operator: boolean;
1781
+ export_state: boolean;
1782
+ catalog: string;
1783
+ } | {
1784
+ class: string;
1785
+ type: string;
1786
+ alias: string;
1787
+ query_location: number;
1788
+ function_name: string;
1789
+ schema: string;
1790
+ children: ({
1791
+ class: string;
1792
+ type: string;
1793
+ alias: string;
1794
+ query_location: number;
1795
+ function_name: string;
1796
+ schema: string;
1797
+ children: {
1798
+ class: string;
1799
+ type: string;
1800
+ alias: string;
1801
+ query_location: number;
1802
+ case_checks: {
1803
+ when_expr: {
1804
+ class: ExpressionClass;
1805
+ type: string;
1806
+ alias: string;
1807
+ query_location: number;
1808
+ left: {
1809
+ class: ExpressionClass;
1810
+ type: ExpressionType;
1811
+ alias: string;
1812
+ query_location: number;
1813
+ column_names: string[];
1814
+ };
1815
+ right: {
1816
+ class: ExpressionClass;
1817
+ type: ExpressionType;
1818
+ alias: string;
1819
+ query_location: number;
1820
+ value: {
1821
+ type: {
1822
+ id: string;
1823
+ type_info: null;
1824
+ };
1825
+ is_null: boolean;
1826
+ value: string;
1827
+ };
1828
+ };
1829
+ };
1830
+ then_expr: {
1831
+ class: ExpressionClass;
1832
+ type: ExpressionType;
1833
+ alias: string;
1834
+ query_location: number;
1835
+ column_names: string[];
1836
+ };
1837
+ }[];
1838
+ else_expr: {
1839
+ class: ExpressionClass;
1840
+ type: ExpressionType;
1841
+ alias: string;
1842
+ query_location: number;
1843
+ value: {
1844
+ type: {
1845
+ id: string;
1846
+ type_info: null;
1847
+ };
1848
+ is_null: boolean;
1849
+ };
1850
+ };
1851
+ }[];
1852
+ filter: null;
1853
+ order_bys: {
1854
+ type: string;
1855
+ orders: never[];
1856
+ };
1857
+ distinct: boolean;
1858
+ is_operator: boolean;
1859
+ export_state: boolean;
1860
+ catalog: string;
1861
+ } | {
1862
+ class: string;
1863
+ type: string;
1864
+ alias: string;
1865
+ query_location: number;
1866
+ function_name: string;
1867
+ schema: string;
1868
+ children: {
1869
+ class: string;
1870
+ type: string;
1871
+ alias: string;
1872
+ query_location: number;
1873
+ case_checks: {
1874
+ when_expr: {
1875
+ class: string;
1876
+ type: string;
1877
+ alias: string;
1878
+ query_location: number;
1879
+ children: ({
1880
+ class: ExpressionClass;
1881
+ type: string;
1882
+ alias: string;
1883
+ query_location: number;
1884
+ left: {
1885
+ class: ExpressionClass;
1886
+ type: ExpressionType;
1887
+ alias: string;
1888
+ query_location: number;
1889
+ column_names: string[];
1890
+ function_name?: undefined;
1891
+ schema?: undefined;
1892
+ children?: undefined;
1893
+ filter?: undefined;
1894
+ order_bys?: undefined;
1895
+ distinct?: undefined;
1896
+ is_operator?: undefined;
1897
+ export_state?: undefined;
1898
+ catalog?: undefined;
1899
+ };
1900
+ right: {
1901
+ class: ExpressionClass;
1902
+ type: ExpressionType;
1903
+ alias: string;
1904
+ query_location: number;
1905
+ value: {
1906
+ type: {
1907
+ id: string;
1908
+ type_info: null;
1909
+ };
1910
+ is_null: boolean;
1911
+ value: string;
1912
+ };
1913
+ };
1914
+ children?: undefined;
1915
+ } | {
1916
+ class: ExpressionClass;
1917
+ type: string;
1918
+ alias: string;
1919
+ query_location: number;
1920
+ left: {
1921
+ class: string;
1922
+ type: string;
1923
+ alias: string;
1924
+ query_location: number;
1925
+ function_name: string;
1926
+ schema: string;
1927
+ children: {
1928
+ class: ExpressionClass;
1929
+ type: ExpressionType;
1930
+ alias: string;
1931
+ query_location: number;
1932
+ column_names: string[];
1933
+ }[];
1934
+ filter: null;
1935
+ order_bys: {
1936
+ type: string;
1937
+ orders: never[];
1938
+ };
1939
+ distinct: boolean;
1940
+ is_operator: boolean;
1941
+ export_state: boolean;
1942
+ catalog: string;
1943
+ column_names?: undefined;
1944
+ };
1945
+ right: {
1946
+ class: ExpressionClass;
1947
+ type: ExpressionType;
1948
+ alias: string;
1949
+ query_location: number;
1950
+ value: {
1951
+ type: {
1952
+ id: string;
1953
+ type_info: null;
1954
+ };
1955
+ is_null: boolean;
1956
+ value: number;
1957
+ };
1958
+ };
1959
+ children?: undefined;
1960
+ } | {
1961
+ class: string;
1962
+ type: string;
1963
+ alias: string;
1964
+ query_location: number;
1965
+ children: ({
1966
+ class: ExpressionClass;
1967
+ type: string;
1968
+ alias: string;
1969
+ query_location: number;
1970
+ left: {
1971
+ class: ExpressionClass;
1972
+ type: ExpressionType;
1973
+ alias: string;
1974
+ query_location: number;
1975
+ column_names: string[];
1976
+ };
1977
+ right: {
1978
+ class: ExpressionClass;
1979
+ type: ExpressionType;
1980
+ alias: string;
1981
+ query_location: number;
1982
+ value: {
1983
+ type: {
1984
+ id: string;
1985
+ type_info: null;
1986
+ };
1987
+ is_null: boolean;
1988
+ value: number;
1989
+ };
1990
+ };
1991
+ children?: undefined;
1992
+ } | {
1993
+ class: string;
1994
+ type: string;
1995
+ alias: string;
1996
+ query_location: number;
1997
+ children: {
1998
+ class: ExpressionClass;
1999
+ type: ExpressionType;
2000
+ alias: string;
2001
+ query_location: number;
2002
+ column_names: string[];
2003
+ }[];
2004
+ left?: undefined;
2005
+ right?: undefined;
2006
+ })[];
2007
+ left?: undefined;
2008
+ right?: undefined;
2009
+ })[];
2010
+ };
2011
+ then_expr: {
2012
+ class: ExpressionClass;
2013
+ type: ExpressionType;
2014
+ alias: string;
2015
+ query_location: number;
2016
+ column_names: string[];
2017
+ };
2018
+ }[];
2019
+ else_expr: {
2020
+ class: ExpressionClass;
2021
+ type: ExpressionType;
2022
+ alias: string;
2023
+ query_location: number;
2024
+ value: {
2025
+ type: {
2026
+ id: string;
2027
+ type_info: null;
2028
+ };
2029
+ is_null: boolean;
2030
+ };
2031
+ };
2032
+ }[];
2033
+ filter: null;
2034
+ order_bys: {
2035
+ type: string;
2036
+ orders: never[];
2037
+ };
2038
+ distinct: boolean;
2039
+ is_operator: boolean;
2040
+ export_state: boolean;
2041
+ catalog: string;
2042
+ })[];
2043
+ filter: null;
2044
+ order_bys: {
2045
+ type: string;
2046
+ orders: never[];
2047
+ };
2048
+ distinct: boolean;
2049
+ is_operator: boolean;
2050
+ export_state: boolean;
2051
+ catalog: string;
2052
+ })[];
2053
+ filter: null;
2054
+ order_bys: {
2055
+ type: string;
2056
+ orders: never[];
2057
+ };
2058
+ distinct: boolean;
2059
+ is_operator: boolean;
2060
+ export_state: boolean;
2061
+ catalog: string;
2062
+ value?: undefined;
2063
+ })[];
2064
+ filter: null;
2065
+ order_bys: {
2066
+ type: string;
2067
+ orders: never[];
2068
+ };
2069
+ distinct: boolean;
2070
+ is_operator: boolean;
2071
+ export_state: boolean;
2072
+ catalog: string;
2073
+ };
2074
+ }[];
2075
+ else_expr: {
2076
+ class: ExpressionClass;
2077
+ type: ExpressionType;
2078
+ alias: string;
2079
+ query_location: number;
2080
+ value: {
2081
+ type: {
2082
+ id: string;
2083
+ type_info: null;
2084
+ };
2085
+ is_null: boolean;
2086
+ };
2087
+ };
2088
+ }[];
2089
+ from_table: {
2090
+ type: string;
2091
+ alias: string;
2092
+ sample: null;
2093
+ query_location: number;
2094
+ };
2095
+ where_clause: null;
2096
+ group_expressions: never[];
2097
+ group_sets: never[];
2098
+ aggregate_handling: string;
2099
+ having: null;
2100
+ sample: null;
2101
+ qualify: null;
2102
+ };
2103
+ };
2104
+ child: null;
2105
+ comparison_type: string;
2106
+ function_name?: undefined;
2107
+ schema?: undefined;
2108
+ children?: undefined;
2109
+ filter?: undefined;
2110
+ order_bys?: undefined;
2111
+ distinct?: undefined;
2112
+ is_operator?: undefined;
2113
+ export_state?: undefined;
2114
+ catalog?: undefined;
2115
+ case_checks?: undefined;
2116
+ else_expr?: undefined;
2117
+ partitions?: undefined;
2118
+ orders?: undefined;
2119
+ start?: undefined;
2120
+ end?: undefined;
2121
+ start_expr?: undefined;
2122
+ end_expr?: undefined;
2123
+ offset_expr?: undefined;
2124
+ default_expr?: undefined;
2125
+ ignore_nulls?: undefined;
2126
+ filter_expr?: undefined;
2127
+ exclude_clause?: undefined;
2128
+ };
2129
+ validFunctions: Set<string>;
2130
+ validScalarFunctions: Set<string>;
2131
+ expected: boolean;
2132
+ error?: undefined;
2133
+ })[];