@malloydata/malloy-tests 0.0.248-dev250325235002 → 0.0.248-dev250326010711
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.248-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.248-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.248-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.248-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.248-
|
|
29
|
-
"@malloydata/malloy": "^0.0.248-
|
|
30
|
-
"@malloydata/malloy-tag": "^0.0.248-
|
|
31
|
-
"@malloydata/render": "^0.0.248-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.248-dev250326010711",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.248-dev250326010711",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.248-dev250326010711",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.248-dev250326010711",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.248-dev250326010711",
|
|
29
|
+
"@malloydata/malloy": "^0.0.248-dev250326010711",
|
|
30
|
+
"@malloydata/malloy-tag": "^0.0.248-dev250326010711",
|
|
31
|
+
"@malloydata/render": "^0.0.248-dev250326010711",
|
|
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.248-
|
|
41
|
+
"version": "0.0.248-dev250326010711"
|
|
42
42
|
}
|
|
@@ -41,7 +41,7 @@ describe.each(runtimes.runtimeList)('filter expressions %s', (dbName, db) => {
|
|
|
41
41
|
select: s
|
|
42
42
|
}`).malloyResultMatches(abc, [{s: 'abc'}]);
|
|
43
43
|
});
|
|
44
|
-
test
|
|
44
|
+
test('empty string filter expression', async () => {
|
|
45
45
|
/*
|
|
46
46
|
since the sql generated works when pasted into mysql
|
|
47
47
|
my next suggestion is that there is some funky re-ordering
|
|
@@ -194,7 +194,7 @@ describe.each(runtimes.runtimeList)('filter expressions %s', (dbName, db) => {
|
|
|
194
194
|
UNION ALL SELECT NULL, 'null'
|
|
195
195
|
""")
|
|
196
196
|
`);
|
|
197
|
-
test
|
|
197
|
+
test('empty numeric filter', async () => {
|
|
198
198
|
await expect(`
|
|
199
199
|
run: nums -> {
|
|
200
200
|
where: n ~ f''
|
|
@@ -359,17 +359,17 @@ describe.each(runtimes.runtimeList)('filter expressions %s', (dbName, db) => {
|
|
|
359
359
|
select: t; order_by: t asc
|
|
360
360
|
}`).malloyResultMatches(facts, [{t: 'false'}, {t: 'true'}]);
|
|
361
361
|
});
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
362
|
+
test.when(testBoolean)('empty boolean filter', async () => {
|
|
363
|
+
await expect(`
|
|
364
|
+
run: facts -> {
|
|
365
|
+
where: b ~ f''
|
|
366
|
+
select: t; order_by: t asc
|
|
367
|
+
}`).malloyResultMatches(facts, [
|
|
368
|
+
{t: 'false'},
|
|
369
|
+
{t: 'null'},
|
|
370
|
+
{t: 'true'},
|
|
371
|
+
]);
|
|
372
|
+
});
|
|
373
373
|
});
|
|
374
374
|
|
|
375
375
|
type TL = 'timeLiteral';
|
|
@@ -579,7 +579,7 @@ describe.each(runtimes.runtimeList)('filter expressions %s', (dbName, db) => {
|
|
|
579
579
|
{n: 'post-range'},
|
|
580
580
|
]);
|
|
581
581
|
});
|
|
582
|
-
test
|
|
582
|
+
test('empty temporal filter', async () => {
|
|
583
583
|
const range = mkRange('2001-01-01 00:00:00', '2002-01-01 00:00:00');
|
|
584
584
|
await expect(`
|
|
585
585
|
# test.verbose
|