@malloydata/malloy-tests 0.0.225-dev241220203531 → 0.0.225-dev241223203704
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/package.json
CHANGED
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "^0.0.225-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.225-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.225-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.225-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.225-
|
|
29
|
-
"@malloydata/malloy": "^0.0.225-
|
|
30
|
-
"@malloydata/render": "^0.0.225-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.225-dev241223203704",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.225-dev241223203704",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.225-dev241223203704",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.225-dev241223203704",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.225-dev241223203704",
|
|
29
|
+
"@malloydata/malloy": "^0.0.225-dev241223203704",
|
|
30
|
+
"@malloydata/render": "^0.0.225-dev241223203704",
|
|
31
31
|
"events": "^3.3.0",
|
|
32
32
|
"jsdom": "^22.1.0",
|
|
33
33
|
"luxon": "^2.4.0",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"@types/jsdom": "^21.1.1",
|
|
38
38
|
"@types/luxon": "^2.4.0"
|
|
39
39
|
},
|
|
40
|
-
"version": "0.0.225-
|
|
40
|
+
"version": "0.0.225-dev241223203704"
|
|
41
41
|
}
|
|
@@ -357,16 +357,6 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
357
357
|
}
|
|
358
358
|
);
|
|
359
359
|
|
|
360
|
-
it('uses the correct symbol for modulus, either % or MOD', async () => {
|
|
361
|
-
await expect(`
|
|
362
|
-
run: aircraft_models->{
|
|
363
|
-
group_by: mod_example is 10 % 4
|
|
364
|
-
}
|
|
365
|
-
`).malloyResultMatches(expressionModel, {
|
|
366
|
-
mod_example: 2,
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
|
|
370
360
|
it('named query metadata undefined', async () => {
|
|
371
361
|
const result = await expressionModel
|
|
372
362
|
.loadQuery(
|
|
@@ -750,6 +750,15 @@ describe('airport_tests', () => {
|
|
|
750
750
|
`).malloyResultMatches(model, {'pipe_turtle.total_airports': 1845});
|
|
751
751
|
});
|
|
752
752
|
|
|
753
|
+
it(`hyperloglog combine`, async () => {
|
|
754
|
+
await expect(`run: bigquery.table('malloytest.airports')->{
|
|
755
|
+
aggregate: code_hll is hll_accumulate(code)
|
|
756
|
+
} -> {
|
|
757
|
+
aggregate: code_count is hll_estimate(hll_combine(code_hll))
|
|
758
|
+
}
|
|
759
|
+
`).malloyResultMatches(runtime, {code_count: 19799});
|
|
760
|
+
});
|
|
761
|
+
|
|
753
762
|
it.skip('crossjoined turtles', async () => {
|
|
754
763
|
// const result = await runQuery(model,`
|
|
755
764
|
// explore airports
|
|
@@ -219,8 +219,8 @@ describe.each(runtimes.runtimeList)(
|
|
|
219
219
|
or_agg is bitwise_or_agg(n1)
|
|
220
220
|
xor_agg is bitwise_xor_agg(n1)
|
|
221
221
|
}`).malloyResultMatches(runtime, {
|
|
222
|
-
and_agg:
|
|
223
|
-
or_agg:
|
|
222
|
+
and_agg: 4166,
|
|
223
|
+
or_agg: 33552351,
|
|
224
224
|
xor_agg: 28922591,
|
|
225
225
|
});
|
|
226
226
|
});
|
|
@@ -439,8 +439,12 @@ describe.each(runtimes.runtimeList)(
|
|
|
439
439
|
`run: ${nums}->{select: t is remove_nulls([null, 2])}`
|
|
440
440
|
).malloyResultMatches(runtime, {t: [2]});
|
|
441
441
|
});
|
|
442
|
-
|
|
443
|
-
|
|
442
|
+
it('runs reverse(null)', async () => {
|
|
443
|
+
await expect(
|
|
444
|
+
`run: ${nums}->{select: t is reverse(null)}`
|
|
445
|
+
).malloyResultMatches(runtime, {t: null});
|
|
446
|
+
});
|
|
447
|
+
it.when(presto)('runs reverse(array)', async () => {
|
|
444
448
|
await expect(
|
|
445
449
|
`run: ${nums}->{select: t is reverse(nums)}`
|
|
446
450
|
).malloyResultMatches(runtime, {t: [1, 1, 4]});
|