@malloydata/malloy-tests 0.0.138-dev240405003346 → 0.0.138-dev240405133532

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.138-dev240405003346",
25
- "@malloydata/db-duckdb": "^0.0.138-dev240405003346",
26
- "@malloydata/db-postgres": "^0.0.138-dev240405003346",
27
- "@malloydata/db-snowflake": "^0.0.138-dev240405003346",
28
- "@malloydata/db-trino": "^0.0.138-dev240405003346",
29
- "@malloydata/malloy": "^0.0.138-dev240405003346",
30
- "@malloydata/render": "^0.0.138-dev240405003346",
24
+ "@malloydata/db-bigquery": "^0.0.138-dev240405133532",
25
+ "@malloydata/db-duckdb": "^0.0.138-dev240405133532",
26
+ "@malloydata/db-postgres": "^0.0.138-dev240405133532",
27
+ "@malloydata/db-snowflake": "^0.0.138-dev240405133532",
28
+ "@malloydata/db-trino": "^0.0.138-dev240405133532",
29
+ "@malloydata/malloy": "^0.0.138-dev240405133532",
30
+ "@malloydata/render": "^0.0.138-dev240405133532",
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.138-dev240405003346"
39
+ "version": "0.0.138-dev240405133532"
40
40
  }
@@ -7,7 +7,7 @@
7
7
  * (the "Software"), to deal in the Software without restriction,
8
8
  * including without limitation the rights to use, copy, modify, merge,
9
9
  * publish, distribute, sublicense, and/or sell copies of the Software,
10
- * and to permit persons to whom the Software is furnished to do so,
10
+ * and to permit persons to whom the Software is furnished to do so
11
11
  * subject to the following conditions:
12
12
  *
13
13
  * The above copyright notice and this permission notice shall be
@@ -231,7 +231,7 @@ runtimes.runtimeMap.forEach((runtime, databaseName) => {
231
231
  }
232
232
  run: f->{
233
233
  aggregate:
234
- row_count is count(concat(state,a.r))
234
+ row_count is count(concat(state,a.r::string))
235
235
  left_sum is airport_count.sum()
236
236
  right_sum is a.r.sum()
237
237
  sum_sum is sum(airport_count + a.r)
@@ -897,7 +897,10 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
897
897
 
898
898
  it(`sql as source - ${databaseName}`, async () => {
899
899
  await expect(`
900
- run: ${sql1234} -> { select: a }
900
+ run: ${sql1234} -> {
901
+ select: a
902
+ order_by: 1
903
+ }
901
904
  `).malloyResultMatches(runtime, {a: 1});
902
905
  });
903
906
 
@@ -919,6 +922,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
919
922
  } AS by_name_query
920
923
  """) -> {
921
924
  select: *; where: popular_name = 'Emma'
925
+ order_by: state_count DESC
922
926
  }`;
923
927
  await expect(turduckenQuery).malloyResultMatches(runtime, {state_count: 6});
924
928
  });
@@ -929,6 +933,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
929
933
  run: ${sql1234} -> {
930
934
  extend: { dimension: c is a + 1 }
931
935
  select: c
936
+ order_by: 1
932
937
  }
933
938
  `).malloyResultMatches(runtime, {c: 2});
934
939
  });
@@ -939,6 +944,7 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
939
944
  view: bar is {
940
945
  extend: { dimension: c is a + 1 }
941
946
  select: c
947
+ order_by: 1
942
948
  }
943
949
  } -> bar
944
950
  `).malloyResultMatches(runtime, {c: 2});
@@ -950,10 +956,12 @@ SELECT row_to_json(finalStage) as row FROM __stage0 AS finalStage`);
950
956
  view: bar is {
951
957
  extend: {dimension: c is a + 1}
952
958
  select: c
959
+ order_by: 1
953
960
  }
954
961
  view: baz is bar + {
955
962
  extend: {dimension: d is c + 1}
956
963
  select: d
964
+ order_by: 1
957
965
  }
958
966
  } -> baz
959
967
  `).malloyResultMatches(runtime, {d: 3});