@malloydata/malloy-tests 0.0.301 → 0.0.302
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,14 +21,14 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@jest/globals": "^29.4.3",
|
|
24
|
-
"@malloydata/db-bigquery": "0.0.
|
|
25
|
-
"@malloydata/db-duckdb": "0.0.
|
|
26
|
-
"@malloydata/db-postgres": "0.0.
|
|
27
|
-
"@malloydata/db-snowflake": "0.0.
|
|
28
|
-
"@malloydata/db-trino": "0.0.
|
|
29
|
-
"@malloydata/malloy": "0.0.
|
|
30
|
-
"@malloydata/malloy-tag": "0.0.
|
|
31
|
-
"@malloydata/render": "0.0.
|
|
24
|
+
"@malloydata/db-bigquery": "0.0.302",
|
|
25
|
+
"@malloydata/db-duckdb": "0.0.302",
|
|
26
|
+
"@malloydata/db-postgres": "0.0.302",
|
|
27
|
+
"@malloydata/db-snowflake": "0.0.302",
|
|
28
|
+
"@malloydata/db-trino": "0.0.302",
|
|
29
|
+
"@malloydata/malloy": "0.0.302",
|
|
30
|
+
"@malloydata/malloy-tag": "0.0.302",
|
|
31
|
+
"@malloydata/render": "0.0.302",
|
|
32
32
|
"events": "^3.3.0",
|
|
33
33
|
"jsdom": "^22.1.0",
|
|
34
34
|
"luxon": "^2.4.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"@types/jsdom": "^21.1.1",
|
|
39
39
|
"@types/luxon": "^2.4.0"
|
|
40
40
|
},
|
|
41
|
-
"version": "0.0.
|
|
41
|
+
"version": "0.0.302"
|
|
42
42
|
}
|
|
@@ -559,6 +559,22 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
559
559
|
}
|
|
560
560
|
`).malloyResultMatches(runtime, {a_avg: 15, c: 2});
|
|
561
561
|
});
|
|
562
|
+
test('partition composite with fields different from partition name', async () => {
|
|
563
|
+
await expect(`
|
|
564
|
+
#! experimental { partition_composite { partition_field=p partitions={x={a} y={b}} } }
|
|
565
|
+
source: comp is ${databaseName}.sql("""
|
|
566
|
+
SELECT 10 AS ${id('a')}, 0 AS ${id('b')}, 'x' AS ${id('p')}
|
|
567
|
+
UNION ALL SELECT 20 AS ${id('a')}, 0 AS ${id('b')}, 'x' AS ${id('p')}
|
|
568
|
+
UNION ALL SELECT 0 AS ${id('a')}, 1 AS ${id('b')}, 'y' AS ${id('p')}
|
|
569
|
+
UNION ALL SELECT 0 AS ${id('a')}, 2 AS ${id('b')}, 'y' AS ${id('p')}
|
|
570
|
+
""")
|
|
571
|
+
|
|
572
|
+
run: comp -> {
|
|
573
|
+
aggregate: a_avg is a.avg()
|
|
574
|
+
aggregate: c is count()
|
|
575
|
+
}
|
|
576
|
+
`).malloyResultMatches(runtime, {a_avg: 15, c: 2});
|
|
577
|
+
});
|
|
562
578
|
test('extended partition composite', async () => {
|
|
563
579
|
await expect(`
|
|
564
580
|
#! experimental { partition_composite { partition_field=p partitions={a={a} b={b}} } }
|