@malloydata/malloy-tests 0.0.164 → 0.0.165-dev240813190247

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.164",
25
- "@malloydata/db-duckdb": "^0.0.164",
26
- "@malloydata/db-postgres": "^0.0.164",
27
- "@malloydata/db-snowflake": "^0.0.164",
28
- "@malloydata/db-trino": "^0.0.164",
29
- "@malloydata/malloy": "^0.0.164",
30
- "@malloydata/render": "^0.0.164",
24
+ "@malloydata/db-bigquery": "^0.0.165-dev240813190247",
25
+ "@malloydata/db-duckdb": "^0.0.165-dev240813190247",
26
+ "@malloydata/db-postgres": "^0.0.165-dev240813190247",
27
+ "@malloydata/db-snowflake": "^0.0.165-dev240813190247",
28
+ "@malloydata/db-trino": "^0.0.165-dev240813190247",
29
+ "@malloydata/malloy": "^0.0.165-dev240813190247",
30
+ "@malloydata/render": "^0.0.165-dev240813190247",
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.164"
39
+ "version": "0.0.165-dev240813190247"
40
40
  }
@@ -63,6 +63,18 @@ afterAll(async () => {
63
63
 
64
64
  runtimes.runtimeMap.forEach((runtime, databaseName) => {
65
65
  const q = runtime.getQuoter();
66
+ // Issue #1824
67
+ it(`not boolean field with null - ${databaseName}`, async () => {
68
+ await expect(`
69
+ run: ${databaseName}.sql("""
70
+ SELECT
71
+ CASE WHEN 1=1 THEN NULL ELSE false END as ${q`n`}
72
+ """) -> {
73
+ select:
74
+ is_true is not n
75
+ }
76
+ `).malloyResultMatches(runtime, {is_true: true});
77
+ });
66
78
 
67
79
  // Issue: #1284
68
80
  it(`parenthesize output field values - ${databaseName}`, async () => {