@malloydata/malloy 0.0.138-dev240403142727 → 0.0.138-dev240403210124
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(
|
|
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
|
}
|