@devrev/meerkat-core 0.0.84 → 0.0.85

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