@malloydata/malloy-tests 0.0.143-dev240417161322 → 0.0.143-dev240419025427
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.143-
|
|
25
|
-
"@malloydata/db-duckdb": "^0.0.143-
|
|
26
|
-
"@malloydata/db-postgres": "^0.0.143-
|
|
27
|
-
"@malloydata/db-snowflake": "^0.0.143-
|
|
28
|
-
"@malloydata/db-trino": "^0.0.143-
|
|
29
|
-
"@malloydata/malloy": "^0.0.143-
|
|
30
|
-
"@malloydata/render": "^0.0.143-
|
|
24
|
+
"@malloydata/db-bigquery": "^0.0.143-dev240419025427",
|
|
25
|
+
"@malloydata/db-duckdb": "^0.0.143-dev240419025427",
|
|
26
|
+
"@malloydata/db-postgres": "^0.0.143-dev240419025427",
|
|
27
|
+
"@malloydata/db-snowflake": "^0.0.143-dev240419025427",
|
|
28
|
+
"@malloydata/db-trino": "^0.0.143-dev240419025427",
|
|
29
|
+
"@malloydata/malloy": "^0.0.143-dev240419025427",
|
|
30
|
+
"@malloydata/render": "^0.0.143-dev240419025427",
|
|
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.143-
|
|
39
|
+
"version": "0.0.143-dev240419025427"
|
|
40
40
|
}
|
package/snowflake/uploaddata.sql
CHANGED
|
@@ -96,6 +96,12 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
+
it('computes mod correctly', async () => {
|
|
100
|
+
await expect(`
|
|
101
|
+
run: ${databaseName}.sql("SELECT 10 as ten") -> {select: mod is 10 % 3}
|
|
102
|
+
`).malloyResultMatches(runtime, {mod: 1});
|
|
103
|
+
});
|
|
104
|
+
|
|
99
105
|
// Model based version of sums.
|
|
100
106
|
it('model: expression fixups.', async () => {
|
|
101
107
|
await expect(`
|
|
@@ -388,12 +394,12 @@ describe.each(runtimes.runtimeList)('%s', (databaseName, runtime) => {
|
|
|
388
394
|
`).malloyResultMatches(expressionModel, {a: 312});
|
|
389
395
|
});
|
|
390
396
|
|
|
391
|
-
test.when(!['postgres'
|
|
397
|
+
test.when(!['postgres'].includes(runtime.connection.name))(
|
|
392
398
|
'sql safe cast',
|
|
393
399
|
async () => {
|
|
394
400
|
await expect(`
|
|
395
401
|
run: ${databaseName}.sql('SELECT 1 as one') -> { select:
|
|
396
|
-
bad_date is '
|
|
402
|
+
bad_date is '12a':::date
|
|
397
403
|
bad_number is 'abc':::number
|
|
398
404
|
good_number is "312":::"integer"
|
|
399
405
|
}
|