@malloydata/malloy-tests 0.0.188-dev240923162529 → 0.0.188
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 +8 -8
- package/src/databases/all/expr.spec.ts +11 -0
- package/src/tags.spec.ts +1 -1
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.188
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.188
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.188
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.188
|
|
28
|
-
"@malloydata/db-trino": "^0.0.188
|
|
29
|
-
"@malloydata/malloy": "^0.0.188
|
|
30
|
-
"@malloydata/render": "^0.0.188
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.188",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.188",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.188",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.188",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.188",
|
|
29
|
+
"@malloydata/malloy": "^0.0.188",
|
|
30
|
+
"@malloydata/render": "^0.0.188",
|
|
31
31
|
"jsdom": "^22.1.0",
|
|
32
32
|
"luxon": "^2.4.0",
|
|
33
33
|
"madge": "^6.0.0"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@types/jsdom": "^21.1.1",
|
|
37
37
|
"@types/luxon": "^2.4.0"
|
|
38
38
|
},
|
|
39
|
-
"version": "0.0.188
|
|
39
|
+
"version": "0.0.188"
|
|
40
40
|
}
|
|
@@ -81,6 +81,17 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
|
|
84
|
+
it('bug with wrong join being used with annotation', async () => {
|
|
85
|
+
await expect(`
|
|
86
|
+
run: aircraft -> {
|
|
87
|
+
# foo
|
|
88
|
+
group_by: aircraft_models.seats
|
|
89
|
+
}
|
|
90
|
+
`).malloyResultMatches(expressionModel, {
|
|
91
|
+
seats: 0,
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
84
95
|
// Floor was broken (wouldn't compile because the expression returned isn't an aggregate.)
|
|
85
96
|
it('Floor() -or any function bustage with aggregates', async () => {
|
|
86
97
|
await expect(`
|
package/src/tags.spec.ts
CHANGED
|
@@ -522,7 +522,7 @@ describe('tags in results', () => {
|
|
|
522
522
|
expect(plotTag!.numeric('x')).toEqual(2);
|
|
523
523
|
expect(x).toEqual(2);
|
|
524
524
|
});
|
|
525
|
-
test('nested fields of same field do not share tags', async () => {
|
|
525
|
+
test.skip('nested fields of same field do not share tags', async () => {
|
|
526
526
|
const loaded = runtime.loadQuery(`
|
|
527
527
|
source: one is duckdb.sql("SELECT 1 as one")
|
|
528
528
|
run: one -> {
|