@finos/legend-query-builder 4.18.0 → 4.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/lib/__test__.d.ts +1 -0
  2. package/lib/__test__.d.ts.map +1 -1
  3. package/lib/__test__.js +1 -0
  4. package/lib/__test__.js.map +1 -1
  5. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts +5 -0
  6. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.d.ts.map +1 -1
  7. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js +28 -2
  8. package/lib/components/__test-utils__/QueryBuilderComponentTestUtils.js.map +1 -1
  9. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.d.ts.map +1 -1
  10. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js +8 -2
  11. package/lib/components/fetch-structure/QueryBuilderTDSWindowPanel.js.map +1 -1
  12. package/lib/components/workflows/AccessorQueryBuilder.js +1 -1
  13. package/lib/components/workflows/AccessorQueryBuilder.js.map +1 -1
  14. package/lib/components/workflows/DataProductQueryBuilder.d.ts.map +1 -1
  15. package/lib/components/workflows/DataProductQueryBuilder.js +13 -12
  16. package/lib/components/workflows/DataProductQueryBuilder.js.map +1 -1
  17. package/lib/data-access-overview.css +1 -1
  18. package/lib/graph/QueryBuilderMetaModelConst.d.ts +2 -0
  19. package/lib/graph/QueryBuilderMetaModelConst.d.ts.map +1 -1
  20. package/lib/graph/QueryBuilderMetaModelConst.js +2 -0
  21. package/lib/graph/QueryBuilderMetaModelConst.js.map +1 -1
  22. package/lib/index.css +1 -1
  23. package/lib/index.d.ts +1 -1
  24. package/lib/index.d.ts.map +1 -1
  25. package/lib/index.js +1 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib/package.json +1 -1
  28. package/lib/stores/QueryBuilderStateHashUtils.d.ts +1 -0
  29. package/lib/stores/QueryBuilderStateHashUtils.d.ts.map +1 -1
  30. package/lib/stores/QueryBuilderStateHashUtils.js +1 -0
  31. package/lib/stores/QueryBuilderStateHashUtils.js.map +1 -1
  32. package/lib/stores/QueryBuilderTypeaheadHelper.js +4 -4
  33. package/lib/stores/QueryBuilderTypeaheadHelper.js.map +1 -1
  34. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts +1 -1
  35. package/lib/stores/QueryBuilderValueSpecificationHelper.d.ts.map +1 -1
  36. package/lib/stores/QueryBuilderValueSpecificationHelper.js +2 -2
  37. package/lib/stores/QueryBuilderValueSpecificationHelper.js.map +1 -1
  38. package/lib/stores/__test-utils__/TEST_DATA__QueryBuilder_Accessors.d.ts +374 -0
  39. package/lib/stores/__test-utils__/TEST_DATA__QueryBuilder_Accessors.d.ts.map +1 -0
  40. package/lib/stores/__test-utils__/TEST_DATA__QueryBuilder_Accessors.js +625 -0
  41. package/lib/stores/__test-utils__/TEST_DATA__QueryBuilder_Accessors.js.map +1 -0
  42. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.d.ts.map +1 -1
  43. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js +3 -2
  44. package/lib/stores/fetch-structure/tds/QueryBuilderTDSState.js.map +1 -1
  45. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderRelationAggregationValueSpecBuilder.js +2 -2
  46. package/lib/stores/fetch-structure/tds/aggregation/QueryBuilderRelationAggregationValueSpecBuilder.js.map +1 -1
  47. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js +1 -1
  48. package/lib/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.js.map +1 -1
  49. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.d.ts.map +1 -1
  50. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js +8 -6
  51. package/lib/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.js.map +1 -1
  52. package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuilder.js +2 -2
  53. package/lib/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuilder.js.map +1 -1
  54. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.d.ts.map +1 -1
  55. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js +2 -0
  56. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.js.map +1 -1
  57. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.d.ts.map +1 -1
  58. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js +40 -14
  59. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.js.map +1 -1
  60. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.d.ts.map +1 -1
  61. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js +72 -30
  62. package/lib/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.js.map +1 -1
  63. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts +1 -1
  64. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.d.ts.map +1 -1
  65. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js +1 -1
  66. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.js.map +1 -1
  67. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js +1 -1
  68. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.js.map +1 -1
  69. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js +1 -1
  70. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.js.map +1 -1
  71. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js +1 -1
  72. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.js.map +1 -1
  73. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_PercentRank.d.ts +25 -0
  74. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_PercentRank.d.ts.map +1 -0
  75. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_PercentRank.js +54 -0
  76. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_PercentRank.js.map +1 -0
  77. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js +1 -1
  78. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.js.map +1 -1
  79. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js +1 -1
  80. package/lib/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.js.map +1 -1
  81. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js +3 -3
  82. package/lib/stores/filter/QueryBuilderFilterValueSpecificationBuilder.js.map +1 -1
  83. package/lib/stores/workflows/accessor/AccessorQueryBuilderState.d.ts +1 -0
  84. package/lib/stores/workflows/accessor/AccessorQueryBuilderState.d.ts.map +1 -1
  85. package/lib/stores/workflows/accessor/AccessorQueryBuilderState.js +4 -0
  86. package/lib/stores/workflows/accessor/AccessorQueryBuilderState.js.map +1 -1
  87. package/lib/stores/workflows/dataProduct/DataProductQueryBuilderState.d.ts +31 -6
  88. package/lib/stores/workflows/dataProduct/DataProductQueryBuilderState.d.ts.map +1 -1
  89. package/lib/stores/workflows/dataProduct/DataProductQueryBuilderState.js +162 -15
  90. package/lib/stores/workflows/dataProduct/DataProductQueryBuilderState.js.map +1 -1
  91. package/package.json +5 -5
  92. package/src/__test__.ts +1 -0
  93. package/src/components/__test-utils__/QueryBuilderComponentTestUtils.tsx +73 -1
  94. package/src/components/fetch-structure/QueryBuilderTDSWindowPanel.tsx +10 -4
  95. package/src/components/workflows/AccessorQueryBuilder.tsx +2 -2
  96. package/src/components/workflows/DataProductQueryBuilder.tsx +40 -62
  97. package/src/graph/QueryBuilderMetaModelConst.ts +2 -0
  98. package/src/index.ts +3 -0
  99. package/src/stores/QueryBuilderStateHashUtils.ts +1 -0
  100. package/src/stores/QueryBuilderTypeaheadHelper.ts +4 -4
  101. package/src/stores/QueryBuilderValueSpecificationHelper.ts +5 -3
  102. package/src/stores/__test-utils__/TEST_DATA__QueryBuilder_Accessors.ts +630 -0
  103. package/src/stores/fetch-structure/tds/QueryBuilderTDSState.ts +3 -2
  104. package/src/stores/fetch-structure/tds/aggregation/QueryBuilderRelationAggregationValueSpecBuilder.ts +2 -2
  105. package/src/stores/fetch-structure/tds/post-filter/QueryBuilderPostFilterValueSpecificationBuilder.ts +1 -1
  106. package/src/stores/fetch-structure/tds/projection/QueryBuilderProjectionValueSpecificationBuilder.ts +8 -6
  107. package/src/stores/fetch-structure/tds/projection/QueryBuilderRelationProjectValueSpecBuilder.ts +2 -2
  108. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowGroupByOperatorLoader.ts +2 -0
  109. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowStateBuilder.ts +85 -25
  110. package/src/stores/fetch-structure/tds/window/QueryBuilderWindowValueSpecificationBuilder.ts +141 -38
  111. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator.ts +1 -1
  112. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Average.ts +1 -1
  113. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Count.ts +1 -1
  114. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Max.ts +1 -1
  115. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Min.ts +1 -1
  116. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_PercentRank.ts +57 -0
  117. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowOperator_Sum.ts +1 -1
  118. package/src/stores/fetch-structure/tds/window/operators/QueryBuilderTDS_WindowRankOperator_RowNumber.ts +1 -1
  119. package/src/stores/filter/QueryBuilderFilterValueSpecificationBuilder.ts +3 -3
  120. package/src/stores/workflows/accessor/AccessorQueryBuilderState.ts +5 -0
  121. package/src/stores/workflows/dataProduct/DataProductQueryBuilderState.ts +275 -24
  122. package/tsconfig.json +2 -0
@@ -0,0 +1,630 @@
1
+ /**
2
+ * Copyright (c) 2026-present, Goldman Sachs
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ export const TEST_DATA__QueryBuilder_Accessors_SimpleProjection_WithPostFilter =
18
+ {
19
+ _type: 'lambda',
20
+ body: [
21
+ {
22
+ _type: 'func',
23
+ function: 'from',
24
+ parameters: [
25
+ {
26
+ _type: 'func',
27
+ function: 'filter',
28
+ parameters: [
29
+ {
30
+ _type: 'func',
31
+ function: 'project',
32
+ parameters: [
33
+ {
34
+ _type: 'classInstance',
35
+ multiplicity: {
36
+ lowerBound: 1,
37
+ upperBound: 1,
38
+ },
39
+ type: 'I',
40
+ value: {
41
+ path: [
42
+ 'ingestion::CARBON_DIOXIDE_EMISSIONS',
43
+ 'CARBON_DIOXIDE_EMISSIONS',
44
+ ],
45
+ metadata: false,
46
+ },
47
+ },
48
+ {
49
+ _type: 'classInstance',
50
+ multiplicity: {
51
+ lowerBound: 1,
52
+ upperBound: 1,
53
+ },
54
+ type: 'colSpecArray',
55
+ value: {
56
+ colSpecs: [
57
+ {
58
+ function1: {
59
+ _type: 'lambda',
60
+ body: [
61
+ {
62
+ _type: 'property',
63
+ parameters: [
64
+ {
65
+ _type: 'var',
66
+ name: 'x',
67
+ },
68
+ ],
69
+ property: 'country',
70
+ },
71
+ ],
72
+ parameters: [
73
+ {
74
+ _type: 'var',
75
+ name: 'x',
76
+ },
77
+ ],
78
+ },
79
+ name: 'Country',
80
+ },
81
+ {
82
+ function1: {
83
+ _type: 'lambda',
84
+ body: [
85
+ {
86
+ _type: 'property',
87
+ parameters: [
88
+ {
89
+ _type: 'var',
90
+ name: 'x',
91
+ },
92
+ ],
93
+ property: 'year',
94
+ },
95
+ ],
96
+ parameters: [
97
+ {
98
+ _type: 'var',
99
+ name: 'x',
100
+ },
101
+ ],
102
+ },
103
+ name: 'Year',
104
+ },
105
+ {
106
+ function1: {
107
+ _type: 'lambda',
108
+ body: [
109
+ {
110
+ _type: 'property',
111
+ parameters: [
112
+ {
113
+ _type: 'var',
114
+ name: 'x',
115
+ },
116
+ ],
117
+ property: 'iso_code',
118
+ },
119
+ ],
120
+ parameters: [
121
+ {
122
+ _type: 'var',
123
+ name: 'x',
124
+ },
125
+ ],
126
+ },
127
+ name: 'Iso code',
128
+ },
129
+ {
130
+ function1: {
131
+ _type: 'lambda',
132
+ body: [
133
+ {
134
+ _type: 'property',
135
+ parameters: [
136
+ {
137
+ _type: 'var',
138
+ name: 'x',
139
+ },
140
+ ],
141
+ property: 'population',
142
+ },
143
+ ],
144
+ parameters: [
145
+ {
146
+ _type: 'var',
147
+ name: 'x',
148
+ },
149
+ ],
150
+ },
151
+ name: 'Population',
152
+ },
153
+ {
154
+ function1: {
155
+ _type: 'lambda',
156
+ body: [
157
+ {
158
+ _type: 'property',
159
+ parameters: [
160
+ {
161
+ _type: 'var',
162
+ name: 'x',
163
+ },
164
+ ],
165
+ property: 'gdp',
166
+ },
167
+ ],
168
+ parameters: [
169
+ {
170
+ _type: 'var',
171
+ name: 'x',
172
+ },
173
+ ],
174
+ },
175
+ name: 'Gdp',
176
+ },
177
+ {
178
+ function1: {
179
+ _type: 'lambda',
180
+ body: [
181
+ {
182
+ _type: 'property',
183
+ parameters: [
184
+ {
185
+ _type: 'var',
186
+ name: 'x',
187
+ },
188
+ ],
189
+ property: 'trade_co2_share',
190
+ },
191
+ ],
192
+ parameters: [
193
+ {
194
+ _type: 'var',
195
+ name: 'x',
196
+ },
197
+ ],
198
+ },
199
+ name: 'Trade co 2 share',
200
+ },
201
+ ],
202
+ },
203
+ },
204
+ ],
205
+ },
206
+ {
207
+ _type: 'lambda',
208
+ body: [
209
+ {
210
+ _type: 'func',
211
+ function: 'equal',
212
+ parameters: [
213
+ {
214
+ _type: 'property',
215
+ parameters: [
216
+ {
217
+ _type: 'var',
218
+ name: 'row',
219
+ },
220
+ ],
221
+ property: 'Gdp',
222
+ },
223
+ {
224
+ _type: 'string',
225
+ value: 'test',
226
+ },
227
+ ],
228
+ },
229
+ ],
230
+ parameters: [
231
+ {
232
+ _type: 'var',
233
+ name: 'row',
234
+ },
235
+ ],
236
+ },
237
+ ],
238
+ },
239
+ {
240
+ _type: 'packageableElementPtr',
241
+ fullPath: 'runtime::LakehouseRuntime',
242
+ },
243
+ ],
244
+ },
245
+ ],
246
+ parameters: [],
247
+ };
248
+
249
+ export const TEST_DATA__QueryBuilder_Accessors_SimpleProjectionWithDatabase_WithPostFilter =
250
+ {
251
+ _type: 'lambda',
252
+ body: [
253
+ {
254
+ _type: 'func',
255
+ function: 'from',
256
+ parameters: [
257
+ {
258
+ _type: 'func',
259
+ function: 'project',
260
+ parameters: [
261
+ {
262
+ _type: 'classInstance',
263
+ multiplicity: {
264
+ lowerBound: 1,
265
+ upperBound: 1,
266
+ },
267
+ type: '>',
268
+ value: {
269
+ path: ['database::TestDatabase', 'default', 'TEST0'],
270
+ },
271
+ },
272
+ {
273
+ _type: 'classInstance',
274
+ multiplicity: {
275
+ lowerBound: 1,
276
+ upperBound: 1,
277
+ },
278
+ type: 'colSpecArray',
279
+ value: {
280
+ colSpecs: [
281
+ {
282
+ function1: {
283
+ _type: 'lambda',
284
+ body: [
285
+ {
286
+ _type: 'property',
287
+ parameters: [
288
+ {
289
+ _type: 'var',
290
+ name: 'x',
291
+ },
292
+ ],
293
+ property: 'FIRSTNAME',
294
+ },
295
+ ],
296
+ parameters: [
297
+ {
298
+ _type: 'var',
299
+ name: 'x',
300
+ },
301
+ ],
302
+ },
303
+ name: 'Firstname',
304
+ },
305
+ {
306
+ function1: {
307
+ _type: 'lambda',
308
+ body: [
309
+ {
310
+ _type: 'property',
311
+ parameters: [
312
+ {
313
+ _type: 'var',
314
+ name: 'x',
315
+ },
316
+ ],
317
+ property: 'LASTNAME',
318
+ },
319
+ ],
320
+ parameters: [
321
+ {
322
+ _type: 'var',
323
+ name: 'x',
324
+ },
325
+ ],
326
+ },
327
+ name: 'Lastname',
328
+ },
329
+ ],
330
+ },
331
+ },
332
+ ],
333
+ },
334
+ {
335
+ _type: 'packageableElementPtr',
336
+ fullPath: 'runtime::LakehouseRuntime',
337
+ },
338
+ ],
339
+ },
340
+ ],
341
+ parameters: [],
342
+ };
343
+
344
+ export const TEST_DATA__QueryBuilder_Accessors = [
345
+ {
346
+ path: 'database::TestDatabase',
347
+ content: {
348
+ _type: 'relational',
349
+ filters: [],
350
+ joins: [],
351
+ name: 'TestDatabase',
352
+ package: 'database',
353
+ schemas: [
354
+ {
355
+ name: 'default',
356
+ tables: [
357
+ {
358
+ columns: [
359
+ {
360
+ name: 'FIRSTNAME',
361
+ nullable: true,
362
+ type: {
363
+ _type: 'Varchar',
364
+ size: 200,
365
+ },
366
+ },
367
+ {
368
+ name: 'LASTNAME',
369
+ nullable: true,
370
+ type: {
371
+ _type: 'Varchar',
372
+ size: 200,
373
+ },
374
+ },
375
+ ],
376
+ name: 'TEST0',
377
+ primaryKey: [],
378
+ },
379
+ ],
380
+ views: [],
381
+ },
382
+ ],
383
+ },
384
+ classifierPath: 'meta::relational::metamodel::Database',
385
+ },
386
+ {
387
+ path: 'runtime::LakehouseRuntime',
388
+ content: {
389
+ _type: 'runtime',
390
+ name: 'LakehouseRuntime',
391
+ package: 'runtime',
392
+ runtimeValue: {
393
+ _type: 'LakehouseRuntime',
394
+ connectionStores: [],
395
+ connections: [],
396
+ mappings: [],
397
+ environment: 'dataeng-pp',
398
+ warehouse: 'LAKEHOUSE_CONSUMER_DEFAULT_WH',
399
+ },
400
+ },
401
+ classifierPath: 'meta::pure::runtime::PackageableRuntime',
402
+ },
403
+ {
404
+ path: 'runtime::TestRuntime',
405
+ content: {
406
+ _type: 'runtime',
407
+ name: 'TestRuntime',
408
+ package: 'runtime',
409
+ runtimeValue: {
410
+ _type: 'engineRuntime',
411
+ connectionStores: [],
412
+ connections: [
413
+ {
414
+ store: {
415
+ path: 'database::TestDatabase',
416
+ type: 'STORE',
417
+ },
418
+ storeConnections: [
419
+ {
420
+ connection: {
421
+ _type: 'connectionPointer',
422
+ connection: 'runtime::TestConnection',
423
+ },
424
+ id: 'connection',
425
+ },
426
+ ],
427
+ },
428
+ ],
429
+ mappings: [],
430
+ },
431
+ },
432
+ classifierPath: 'meta::pure::runtime::PackageableRuntime',
433
+ },
434
+ {
435
+ path: 'runtime::TestConnection',
436
+ content: {
437
+ _type: 'connection',
438
+ connectionValue: {
439
+ _type: 'RelationalDatabaseConnection',
440
+ authenticationStrategy: {
441
+ _type: 'h2Default',
442
+ },
443
+ databaseType: 'H2',
444
+ datasourceSpecification: {
445
+ _type: 'h2Local',
446
+ testDataSetupSqls: [''],
447
+ },
448
+ element: 'database::TestDatabase',
449
+ type: 'H2',
450
+ },
451
+ name: 'TestConnection',
452
+ package: 'runtime',
453
+ },
454
+ classifierPath: 'meta::pure::runtime::PackageableConnection',
455
+ },
456
+ {
457
+ path: 'ingestion::CARBON_DIOXIDE_EMISSIONS',
458
+ content: {
459
+ _type: 'ingestDefinition',
460
+ name: 'CARBON_DIOXIDE_EMISSIONS',
461
+ readMode: {
462
+ _type: 'Snapshot',
463
+ },
464
+ writeMode: {
465
+ _type: 'batch_milestoned',
466
+ },
467
+ datasets: [
468
+ {
469
+ name: 'CARBON_DIOXIDE_EMISSIONS',
470
+ primaryKey: ['country', 'year'],
471
+ ingestPartitionColumns: [],
472
+ storageLayoutClusterColumns: [],
473
+ storageLayoutPartitionColumns: [],
474
+ source: {
475
+ _type: 'serializedSource',
476
+ schema: {
477
+ _type: 'relationType',
478
+ columns: [
479
+ {
480
+ name: 'country',
481
+ genericType: {
482
+ rawType: {
483
+ _type: 'packageableType',
484
+ fullPath: 'Varchar',
485
+ },
486
+ typeArguments: [],
487
+ multiplicityArguments: [],
488
+ typeVariableValues: [
489
+ {
490
+ _type: 'integer',
491
+ value: 255,
492
+ },
493
+ ],
494
+ },
495
+ multiplicity: {
496
+ lowerBound: 1,
497
+ upperBound: 1,
498
+ },
499
+ },
500
+ {
501
+ name: 'year',
502
+ genericType: {
503
+ rawType: {
504
+ _type: 'packageableType',
505
+ fullPath: 'BigInt',
506
+ },
507
+ typeArguments: [],
508
+ multiplicityArguments: [],
509
+ typeVariableValues: [],
510
+ },
511
+ multiplicity: {
512
+ lowerBound: 1,
513
+ upperBound: 1,
514
+ },
515
+ },
516
+ {
517
+ name: 'iso_code',
518
+ genericType: {
519
+ rawType: {
520
+ _type: 'packageableType',
521
+ fullPath: 'Varchar',
522
+ },
523
+ typeArguments: [],
524
+ multiplicityArguments: [],
525
+ typeVariableValues: [
526
+ {
527
+ _type: 'integer',
528
+ value: 255,
529
+ },
530
+ ],
531
+ },
532
+ multiplicity: {
533
+ lowerBound: 0,
534
+ upperBound: 0,
535
+ },
536
+ },
537
+ {
538
+ name: 'population',
539
+ genericType: {
540
+ rawType: {
541
+ _type: 'packageableType',
542
+ fullPath: 'Double',
543
+ },
544
+ typeArguments: [],
545
+ multiplicityArguments: [],
546
+ typeVariableValues: [],
547
+ },
548
+ multiplicity: {
549
+ lowerBound: 0,
550
+ upperBound: 0,
551
+ },
552
+ },
553
+ {
554
+ name: 'gdp',
555
+ genericType: {
556
+ rawType: {
557
+ _type: 'packageableType',
558
+ fullPath: 'Varchar',
559
+ },
560
+ typeArguments: [],
561
+ multiplicityArguments: [],
562
+ typeVariableValues: [
563
+ {
564
+ _type: 'integer',
565
+ value: 255,
566
+ },
567
+ ],
568
+ },
569
+ multiplicity: {
570
+ lowerBound: 0,
571
+ upperBound: 0,
572
+ },
573
+ },
574
+ {
575
+ name: 'trade_co2_share',
576
+ genericType: {
577
+ rawType: {
578
+ _type: 'packageableType',
579
+ fullPath: 'Varchar',
580
+ },
581
+ typeArguments: [],
582
+ multiplicityArguments: [],
583
+ typeVariableValues: [
584
+ {
585
+ _type: 'integer',
586
+ value: 255,
587
+ },
588
+ ],
589
+ },
590
+ multiplicity: {
591
+ lowerBound: 0,
592
+ upperBound: 0,
593
+ },
594
+ },
595
+ ],
596
+ },
597
+ format: {
598
+ _type: 'CSV',
599
+ fieldDelimiter: '\u001f',
600
+ headerRowsToSkipCount: 0,
601
+ recordDelimiter: '\u001e\n',
602
+ parseHeader: false,
603
+ },
604
+ },
605
+ privacyClassification: {
606
+ sensitivity: 'DP10',
607
+ },
608
+ preprocessors: [],
609
+ },
610
+ ],
611
+ datasetGroup: 'VLF_DEMO_DATA',
612
+ owner: {
613
+ _type: 'appDir',
614
+ prodParallel: {
615
+ appDirId: 270520,
616
+ level: 'DEPLOYMENT',
617
+ },
618
+ production: {
619
+ appDirId: 270523,
620
+ level: 'DEPLOYMENT',
621
+ },
622
+ },
623
+ stereotypes: [],
624
+ taggedValues: [],
625
+ package: 'ingestion',
626
+ },
627
+ classifierPath:
628
+ 'meta::external::ingest::specification::metamodel::IngestDefinition',
629
+ },
630
+ ];
@@ -533,7 +533,7 @@ export class QueryBuilderTDSState
533
533
  ): void {
534
534
  // setup new derivation column state
535
535
  const columnColumnLambda = buildGenericLambdaFunctionInstanceValue(
536
- simpleProjectionColumnState.lambdaParameterName,
536
+ [simpleProjectionColumnState.lambdaParameterName],
537
537
  [simpleProjectionColumnState.propertyExpressionState.propertyExpression],
538
538
  this.queryBuilderState.graphManagerState.graph,
539
539
  );
@@ -577,7 +577,7 @@ export class QueryBuilderTDSState
577
577
  ),
578
578
  ];
579
579
  const columnColumnLambda = buildGenericLambdaFunctionInstanceValue(
580
- relationColumnProjectionColumnState.lambdaParameterName,
580
+ [relationColumnProjectionColumnState.lambdaParameterName],
581
581
  [funcExpression],
582
582
  this.queryBuilderState.graphManagerState.graph,
583
583
  );
@@ -930,6 +930,7 @@ export class QueryBuilderTDSState
930
930
  this.aggregationState,
931
931
  this.postFilterState,
932
932
  this.resultSetModifierState,
933
+ this.windowState,
933
934
  ]);
934
935
  }
935
936
 
@@ -154,7 +154,7 @@ export const buildRelationAggregation = (
154
154
  new VariableExpression(DEFAULT_LAMBDA_VARIABLE_NAME, Multiplicity.ONE),
155
155
  ];
156
156
  const mapLambda = buildGenericLambdaFunctionInstanceValue(
157
- DEFAULT_LAMBDA_VARIABLE_NAME,
157
+ [DEFAULT_LAMBDA_VARIABLE_NAME],
158
158
  [newPropertyExpression],
159
159
  queryBuilderState.graphManagerState.graph,
160
160
  );
@@ -162,7 +162,7 @@ export const buildRelationAggregation = (
162
162
 
163
163
  // Reduce function (function2)
164
164
  const reduceLambda = buildGenericLambdaFunctionInstanceValue(
165
- aggregationColumnState.lambdaParameterName,
165
+ [aggregationColumnState.lambdaParameterName],
166
166
  [
167
167
  aggregationColumnState.operator.buildAggregateExpressionFromState(
168
168
  aggregationColumnState,
@@ -100,7 +100,7 @@ export const appendPostFilter = (
100
100
  return lambdaFunction;
101
101
  }
102
102
  const filterLambda = buildGenericLambdaFunctionInstanceValue(
103
- postFilterState.lambdaParameterName,
103
+ [postFilterState.lambdaParameterName],
104
104
  postFilterConditionExpressions,
105
105
  postFilterState.tdsState.queryBuilderState.graphManagerState.graph,
106
106
  );