@malloydata/malloy 0.0.138-dev240403142727 → 0.0.138-dev240403155507

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.
@@ -216,7 +216,7 @@ class TrinoDialect extends dialect_1.Dialect {
216
216
  sqlAggregateTurtle(groupSet, fieldList, orderBy, limit) {
217
217
  const expressions = fieldList.map(f => f.sqlExpression).join(',\n ');
218
218
  const definitions = this.buildTypeExpression(fieldList);
219
- let ret = `ARRAY_AGG(CASE WHEN group_set=${groupSet} THEN CAST(ROW(${expressions}) AS ROW(${definitions})) END ${orderBy})`;
219
+ let ret = `ARRAY_AGG(CAST(ROW(${expressions}) AS ROW(${definitions})) ${orderBy}) FILTER (WHERE group_set=${groupSet})`;
220
220
  if (limit !== undefined) {
221
221
  ret = `SLICE(${ret}, 1, ${limit})`;
222
222
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/malloy",
3
- "version": "0.0.138-dev240403142727",
3
+ "version": "0.0.138-dev240403155507",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",