@malloydata/malloy-tests 0.0.127-dev240307031210 → 0.0.127-dev240309202055
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.
- package/dist/databases/all/db_index.spec.js +2 -2
- package/dist/databases/all/db_index.spec.js.map +1 -1
- package/dist/databases/all/expr.spec.js +14 -14
- package/dist/databases/all/expr.spec.js.map +1 -1
- package/dist/databases/all/join.spec.js +2 -2
- package/dist/databases/all/join.spec.js.map +1 -1
- package/dist/databases/all/lenses.spec.js +45 -44
- package/dist/databases/all/lenses.spec.js.map +1 -1
- package/dist/databases/all/nomodel.spec.js +36 -36
- package/dist/databases/all/nomodel.spec.js.map +1 -1
- package/dist/databases/all/orderby.spec.js +4 -4
- package/dist/databases/all/orderby.spec.js.map +1 -1
- package/dist/databases/all/time.spec.js +26 -24
- package/dist/databases/all/time.spec.js.map +1 -1
- package/dist/databases/bigquery-postgres/multi_connection.spec.js +4 -7
- package/dist/databases/bigquery-postgres/multi_connection.spec.js.map +1 -1
- package/dist/databases/bigquery-postgres/streaming.spec.js +3 -0
- package/dist/databases/bigquery-postgres/streaming.spec.js.map +1 -1
- package/dist/databases/duckdb/duckdb.spec.js +1 -1
- package/dist/databases/duckdb/duckdb.spec.js.map +1 -1
- package/dist/databases/duckdb/streaming.spec.js +3 -0
- package/dist/databases/duckdb/streaming.spec.js.map +1 -1
- package/dist/render/render.spec.js +28 -28
- package/dist/render/render.spec.js.map +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/index.js +17 -6
- package/dist/util/index.js.map +1 -1
- package/package.json +10 -7
- package/snowflake/uploaddata.sql +5 -4
- package/src/databases/all/db_index.spec.ts +4 -4
- package/src/databases/all/expr.spec.ts +41 -29
- package/src/databases/all/join.spec.ts +4 -4
- package/src/databases/all/lenses.spec.ts +45 -44
- package/src/databases/all/nomodel.spec.ts +91 -70
- package/src/databases/all/orderby.spec.ts +7 -7
- package/src/databases/all/time.spec.ts +45 -41
- package/src/databases/bigquery-postgres/multi_connection.spec.ts +4 -6
- package/src/databases/bigquery-postgres/streaming.spec.ts +3 -0
- package/src/databases/duckdb/duckdb.spec.ts +1 -1
- package/src/databases/duckdb/streaming.spec.ts +3 -0
- package/src/render/render.spec.ts +162 -120
- package/src/util/index.ts +24 -4
|
@@ -36,9 +36,10 @@ afterAll(async () => {
|
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
39
|
+
const q = runtime.getQuoter();
|
|
39
40
|
it(`named view plus named view - ${databaseName}`, async () => {
|
|
40
41
|
await expect(`
|
|
41
|
-
source: x is ${databaseName}.sql(
|
|
42
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
42
43
|
view: d is { group_by: n }
|
|
43
44
|
view: m is { aggregate: c is count() }
|
|
44
45
|
}
|
|
@@ -47,7 +48,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
47
48
|
});
|
|
48
49
|
it(`named view plus measure - ${databaseName}`, async () => {
|
|
49
50
|
await expect(`
|
|
50
|
-
source: x is ${databaseName}.sql(
|
|
51
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
51
52
|
view: d is { group_by: n }
|
|
52
53
|
measure: c is count()
|
|
53
54
|
}
|
|
@@ -56,7 +57,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
56
57
|
});
|
|
57
58
|
it(`dimension plus named view - ${databaseName}`, async () => {
|
|
58
59
|
await expect(`
|
|
59
|
-
source: x is ${databaseName}.sql(
|
|
60
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
60
61
|
view: m is { aggregate: c is count() }
|
|
61
62
|
}
|
|
62
63
|
run: x -> n + m
|
|
@@ -64,7 +65,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
64
65
|
});
|
|
65
66
|
it(`where headed - ${databaseName}`, async () => {
|
|
66
67
|
await expect(`
|
|
67
|
-
source: x is ${databaseName}.sql(
|
|
68
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
68
69
|
view: m is { aggregate: c is count() }
|
|
69
70
|
}
|
|
70
71
|
run: x -> { where: true } + m
|
|
@@ -72,7 +73,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
72
73
|
});
|
|
73
74
|
it(`named view plus named view in source - ${databaseName}`, async () => {
|
|
74
75
|
await expect(`
|
|
75
|
-
source: x is ${databaseName}.sql(
|
|
76
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
76
77
|
view: d is { group_by: n }
|
|
77
78
|
view: m is { aggregate: c is count() }
|
|
78
79
|
view: y is d + m
|
|
@@ -82,7 +83,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
82
83
|
});
|
|
83
84
|
it(`dimension plus named view in source - ${databaseName}`, async () => {
|
|
84
85
|
await expect(`
|
|
85
|
-
source: x is ${databaseName}.sql(
|
|
86
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
86
87
|
view: m is { aggregate: c is count() }
|
|
87
88
|
view: y is n + m
|
|
88
89
|
}
|
|
@@ -91,7 +92,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
91
92
|
});
|
|
92
93
|
it(`named view plus dimension in source - ${databaseName}`, async () => {
|
|
93
94
|
await expect(`
|
|
94
|
-
source: x is ${databaseName}.sql(
|
|
95
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
95
96
|
view: m is { aggregate: c is count() }
|
|
96
97
|
view: y is m + n
|
|
97
98
|
}
|
|
@@ -100,7 +101,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
100
101
|
});
|
|
101
102
|
it(`literal view plus named view - ${databaseName}`, async () => {
|
|
102
103
|
await expect(`
|
|
103
|
-
source: x is ${databaseName}.sql(
|
|
104
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
104
105
|
view: m is { aggregate: c is count() }
|
|
105
106
|
}
|
|
106
107
|
run: x -> { group_by: n } + m
|
|
@@ -108,7 +109,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
108
109
|
});
|
|
109
110
|
it(`literal view plus measure - ${databaseName}`, async () => {
|
|
110
111
|
await expect(`
|
|
111
|
-
source: x is ${databaseName}.sql(
|
|
112
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
112
113
|
measure: c is count()
|
|
113
114
|
}
|
|
114
115
|
run: x -> { group_by: n } + c
|
|
@@ -116,7 +117,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
116
117
|
});
|
|
117
118
|
it(`measure plus literal view - ${databaseName}`, async () => {
|
|
118
119
|
await expect(`
|
|
119
|
-
source: x is ${databaseName}.sql(
|
|
120
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
120
121
|
measure: c is count()
|
|
121
122
|
}
|
|
122
123
|
run: x -> c + { group_by: n }
|
|
@@ -124,7 +125,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
124
125
|
});
|
|
125
126
|
it(`literal view plus named view in source - ${databaseName}`, async () => {
|
|
126
127
|
await expect(`
|
|
127
|
-
source: x is ${databaseName}.sql(
|
|
128
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
128
129
|
view: m is { aggregate: c is count() }
|
|
129
130
|
view: y is { group_by: n } + m
|
|
130
131
|
}
|
|
@@ -133,7 +134,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
133
134
|
});
|
|
134
135
|
it(`literal view plus measure in source - ${databaseName}`, async () => {
|
|
135
136
|
await expect(`
|
|
136
|
-
source: x is ${databaseName}.sql(
|
|
137
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
137
138
|
measure: c is count()
|
|
138
139
|
view: y is { group_by: n } + c
|
|
139
140
|
}
|
|
@@ -142,7 +143,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
142
143
|
});
|
|
143
144
|
it(`named view plus literal view - ${databaseName}`, async () => {
|
|
144
145
|
await expect(`
|
|
145
|
-
source: x is ${databaseName}.sql(
|
|
146
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
146
147
|
view: d is { group_by: n }
|
|
147
148
|
}
|
|
148
149
|
run: x -> d + { aggregate: c is count() }
|
|
@@ -150,13 +151,13 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
150
151
|
});
|
|
151
152
|
it(`literal view plus literal view - ${databaseName}`, async () => {
|
|
152
153
|
await expect(`
|
|
153
|
-
source: x is ${databaseName}.sql(
|
|
154
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}')
|
|
154
155
|
run: x -> { group_by: n } + { aggregate: c is count() }
|
|
155
156
|
`).malloyResultMatches(runtime, {n: 1, c: 1});
|
|
156
157
|
});
|
|
157
158
|
it(`three named views - ${databaseName}`, async () => {
|
|
158
159
|
await expect(`
|
|
159
|
-
source: x is ${databaseName}.sql(
|
|
160
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
160
161
|
view: d1 is { group_by: n1 is n }
|
|
161
162
|
view: d2 is { group_by: n2 is n }
|
|
162
163
|
view: m is { aggregate: c is count() }
|
|
@@ -166,7 +167,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
166
167
|
});
|
|
167
168
|
it(`nested no name - ${databaseName}`, async () => {
|
|
168
169
|
await expect(`
|
|
169
|
-
source: x is ${databaseName}.sql(
|
|
170
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
170
171
|
view: d is { group_by: n }
|
|
171
172
|
view: m is { aggregate: c is count() }
|
|
172
173
|
}
|
|
@@ -177,7 +178,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
177
178
|
});
|
|
178
179
|
it(`nested with name - ${databaseName}`, async () => {
|
|
179
180
|
await expect(`
|
|
180
|
-
source: x is ${databaseName}.sql(
|
|
181
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
181
182
|
view: d is { group_by: n }
|
|
182
183
|
view: m is { aggregate: c is count() }
|
|
183
184
|
}
|
|
@@ -188,7 +189,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
188
189
|
});
|
|
189
190
|
it(`nested no name with dimension head - ${databaseName}`, async () => {
|
|
190
191
|
await expect(`
|
|
191
|
-
source: x is ${databaseName}.sql(
|
|
192
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
192
193
|
view: m is { aggregate: c is count() }
|
|
193
194
|
}
|
|
194
195
|
run: x -> {
|
|
@@ -198,7 +199,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
198
199
|
});
|
|
199
200
|
it(`nest dimension only - ${databaseName}`, async () => {
|
|
200
201
|
await expect(`
|
|
201
|
-
source: x is ${databaseName}.sql(
|
|
202
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
202
203
|
view: m is { aggregate: c is count() }
|
|
203
204
|
}
|
|
204
205
|
run: x -> {
|
|
@@ -208,8 +209,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
208
209
|
});
|
|
209
210
|
it(`joined dimension in middle of refinements - ${databaseName}`, async () => {
|
|
210
211
|
await expect(`
|
|
211
|
-
source: x is ${databaseName}.sql(
|
|
212
|
-
join_one: y is ${databaseName}.sql(
|
|
212
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
213
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
213
214
|
view: m is { aggregate: c is count() }
|
|
214
215
|
}
|
|
215
216
|
run: x -> m + y.n + { limit: 1 }
|
|
@@ -217,8 +218,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
217
218
|
});
|
|
218
219
|
it(`nest joined dimension refined - ${databaseName}`, async () => {
|
|
219
220
|
await expect(`
|
|
220
|
-
source: x is ${databaseName}.sql(
|
|
221
|
-
join_one: y is ${databaseName}.sql(
|
|
221
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
222
|
+
join_one: y is ${databaseName}.sql('SELECT 1 as ${q`n`}') on true
|
|
222
223
|
view: m is { aggregate: c is count() }
|
|
223
224
|
}
|
|
224
225
|
run: x -> {
|
|
@@ -228,8 +229,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
228
229
|
});
|
|
229
230
|
it(`joined dimension refined - ${databaseName}`, async () => {
|
|
230
231
|
await expect(`
|
|
231
|
-
source: x is ${databaseName}.sql(
|
|
232
|
-
join_one: y is ${databaseName}.sql(
|
|
232
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
233
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
233
234
|
view: m is { aggregate: c is count() }
|
|
234
235
|
}
|
|
235
236
|
run: x -> y.n + { limit: 1 }
|
|
@@ -237,8 +238,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
237
238
|
});
|
|
238
239
|
it(`nest joined dimension bare - ${databaseName}`, async () => {
|
|
239
240
|
await expect(`
|
|
240
|
-
source: x is ${databaseName}.sql(
|
|
241
|
-
join_one: y is ${databaseName}.sql(
|
|
241
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
242
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
242
243
|
view: m is { aggregate: c is count() }
|
|
243
244
|
}
|
|
244
245
|
run: x -> {
|
|
@@ -248,8 +249,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
248
249
|
});
|
|
249
250
|
it(`joined dimension bare - ${databaseName}`, async () => {
|
|
250
251
|
await expect(`
|
|
251
|
-
source: x is ${databaseName}.sql(
|
|
252
|
-
join_one: y is ${databaseName}.sql(
|
|
252
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
253
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
253
254
|
view: m is { aggregate: c is count() }
|
|
254
255
|
}
|
|
255
256
|
run: x -> y.n
|
|
@@ -257,8 +258,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
257
258
|
});
|
|
258
259
|
it(`joined dimension nest refinement - ${databaseName}`, async () => {
|
|
259
260
|
await expect(`
|
|
260
|
-
source: x is ${databaseName}.sql(
|
|
261
|
-
join_one: y is ${databaseName}.sql(
|
|
261
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
262
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
262
263
|
view: m is { aggregate: c is count() }
|
|
263
264
|
}
|
|
264
265
|
run: x -> { nest: m + y.n }
|
|
@@ -266,7 +267,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
266
267
|
});
|
|
267
268
|
it.skip(`nest measure only in second stage - ${databaseName}`, async () => {
|
|
268
269
|
await expect(`
|
|
269
|
-
source: x is ${databaseName}.sql(
|
|
270
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
270
271
|
view: m is { aggregate: c is count() }
|
|
271
272
|
}
|
|
272
273
|
run: x -> m -> {
|
|
@@ -276,7 +277,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
276
277
|
});
|
|
277
278
|
it(`nest dimension only in refinement - ${databaseName}`, async () => {
|
|
278
279
|
await expect(`
|
|
279
|
-
source: x is ${databaseName}.sql(
|
|
280
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
280
281
|
view: m is { aggregate: c is count() }
|
|
281
282
|
}
|
|
282
283
|
run: x -> m + {
|
|
@@ -286,7 +287,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
286
287
|
});
|
|
287
288
|
it(`view dimension only - ${databaseName}`, async () => {
|
|
288
289
|
await expect(`
|
|
289
|
-
source: x is ${databaseName}.sql(
|
|
290
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
290
291
|
view: m is n
|
|
291
292
|
}
|
|
292
293
|
run: x -> m
|
|
@@ -294,8 +295,8 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
294
295
|
});
|
|
295
296
|
it(`view join dimension only - ${databaseName}`, async () => {
|
|
296
297
|
await expect(`
|
|
297
|
-
source: x is ${databaseName}.sql(
|
|
298
|
-
join_one: y is ${databaseName}.sql(
|
|
298
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
299
|
+
join_one: y is ${databaseName}.sql('SELECT 2 as ${q`n`}') on true
|
|
299
300
|
view: m is y.n
|
|
300
301
|
}
|
|
301
302
|
run: x -> m
|
|
@@ -303,26 +304,26 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
303
304
|
});
|
|
304
305
|
it(`run dimension only - ${databaseName}`, async () => {
|
|
305
306
|
await expect(`
|
|
306
|
-
source: x is ${databaseName}.sql(
|
|
307
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}')
|
|
307
308
|
run: x -> n
|
|
308
309
|
`).malloyResultMatches(runtime, {n: 1});
|
|
309
310
|
});
|
|
310
311
|
it.skip(`second stage refinement chain - ${databaseName}`, async () => {
|
|
311
312
|
await expect(`
|
|
312
|
-
source: x is ${databaseName}.sql(
|
|
313
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}')
|
|
313
314
|
run: x -> n -> n + { aggregate: c is count() }
|
|
314
315
|
`).malloyResultMatches(runtime, {n: 1, c: 1});
|
|
315
316
|
});
|
|
316
317
|
it.skip(`second stage refinement chain in nest - ${databaseName}`, async () => {
|
|
317
318
|
await expect(`
|
|
318
|
-
source: x is ${databaseName}.sql(
|
|
319
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
319
320
|
view: v is n -> n + { aggregate: c is count() }
|
|
320
321
|
}
|
|
321
322
|
`).malloyResultMatches(runtime, {n: 1, c: 1});
|
|
322
323
|
});
|
|
323
324
|
it(`copy of view with lens - ${databaseName}`, async () => {
|
|
324
325
|
await expect(`
|
|
325
|
-
source: x is ${databaseName}.sql(
|
|
326
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
326
327
|
view: metrics is { aggregate: c is count() }
|
|
327
328
|
view: v is { group_by: n } + metrics
|
|
328
329
|
view: v2 is v
|
|
@@ -332,7 +333,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
332
333
|
});
|
|
333
334
|
it(`aggregate copy bug with only old refinement - ${databaseName}`, async () => {
|
|
334
335
|
await expect(`
|
|
335
|
-
source: x is ${databaseName}.sql(
|
|
336
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
336
337
|
measure: c is count()
|
|
337
338
|
}
|
|
338
339
|
run: x -> c + {
|
|
@@ -342,7 +343,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
342
343
|
});
|
|
343
344
|
it(`aggregate copy bug with only old old refinement - ${databaseName}`, async () => {
|
|
344
345
|
await expect(`
|
|
345
|
-
source: x is ${databaseName}.sql(
|
|
346
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
346
347
|
measure: c is count()
|
|
347
348
|
view: v is { aggregate: c }
|
|
348
349
|
}
|
|
@@ -353,7 +354,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
353
354
|
});
|
|
354
355
|
it(`but still need to be able to use as output field - ${databaseName}`, async () => {
|
|
355
356
|
await expect(`
|
|
356
|
-
source: x is ${databaseName}.sql(
|
|
357
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
357
358
|
measure: c is count()
|
|
358
359
|
view: v is { aggregate: c }
|
|
359
360
|
}
|
|
@@ -364,7 +365,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
|
|
|
364
365
|
});
|
|
365
366
|
it(`aggregate copy bug - ${databaseName}`, async () => {
|
|
366
367
|
await expect(`
|
|
367
|
-
source: x is ${databaseName}.sql(
|
|
368
|
+
source: x is ${databaseName}.sql('SELECT 1 as ${q`n`}') extend {
|
|
368
369
|
measure: c is count()
|
|
369
370
|
}
|
|
370
371
|
run: x -> n + c + {
|