@malloydata/malloy-tests 0.0.318 → 0.0.320

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/bin/ping_db.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable n/no-process-exit */
1
2
  /*
2
3
  * Copyright 2023 Google LLC
3
4
  *
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.318",
25
- "@malloydata/db-duckdb": "0.0.318",
26
- "@malloydata/db-postgres": "0.0.318",
27
- "@malloydata/db-snowflake": "0.0.318",
28
- "@malloydata/db-trino": "0.0.318",
29
- "@malloydata/malloy": "0.0.318",
30
- "@malloydata/malloy-tag": "0.0.318",
31
- "@malloydata/render": "0.0.318",
24
+ "@malloydata/db-bigquery": "0.0.320",
25
+ "@malloydata/db-duckdb": "0.0.320",
26
+ "@malloydata/db-postgres": "0.0.320",
27
+ "@malloydata/db-snowflake": "0.0.320",
28
+ "@malloydata/db-trino": "0.0.320",
29
+ "@malloydata/malloy": "0.0.320",
30
+ "@malloydata/malloy-tag": "0.0.320",
31
+ "@malloydata/render": "0.0.320",
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.318"
41
+ "version": "0.0.320"
42
42
  }
@@ -335,11 +335,18 @@ describe.each(runtimes.runtimeList)('filter expressions %s', (dbName, db) => {
335
335
  }`).malloyResultMatches(nums, [{n: 0}, {n: 1}]);
336
336
  });
337
337
  test('not <=1', async () => {
338
+ await expect(`
339
+ run: nums -> {
340
+ where: n ~ f'not <=1'
341
+ select: n; order_by: n asc
342
+ }`).malloyResultMatches(nums, [{n: 2}, {n: 3}, {n: 4}]);
343
+ });
344
+ test('not null and not 0,1,2', async () => {
338
345
  await expect(`
339
346
  run: nums -> {
340
- where: n ~ f'not <=1'
347
+ where: n ~ f'not null and not 0,1,2'
341
348
  select: n; order_by: n asc
342
- }`).malloyResultMatches(nums, [{n: 2}, {n: 3}, {n: 4}]);
349
+ }`).malloyResultMatches(nums, [{n: 3}, {n: 4}]);
343
350
  });
344
351
  });
345
352
 
@@ -146,8 +146,8 @@ expressionModels.forEach((x, databaseName) => {
146
146
  databaseName === 'postgres'
147
147
  ? 'const'
148
148
  : databaseName === 'mysql'
149
- ? 'cons1'
150
- : 'construe',
149
+ ? 'cons1'
150
+ : 'construe',
151
151
  ],
152
152
  ["concat('foo', @2003)", 'foo2003-01-01'],
153
153
  [
@@ -241,10 +241,10 @@ expressionModels.forEach((x, databaseName) => {
241
241
  databaseName === 'postgres'
242
242
  ? '\\0 - a - b - c'
243
243
  : databaseName === 'trino' ||
244
- databaseName === 'presto' ||
245
- databaseName === 'mysql'
246
- ? '0 - 1 - 2 - 3'
247
- : 'axbxc - a - b - c',
244
+ databaseName === 'presto' ||
245
+ databaseName === 'mysql'
246
+ ? '0 - 1 - 2 - 3'
247
+ : 'axbxc - a - b - c',
248
248
  ],
249
249
  [
250
250
  "replace('aaaa', '', 'c')",