From 9a4a70b274d9ce6f74c8512939adcf4709de5487 Mon Sep 17 00:00:00 2001 From: Michael Toy <66150587+mtoy-googly-moogly@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:59:08 -0800 Subject: [PATCH] also find records in aggregate paths --- packages/malloy/src/model/malloy_query.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/malloy/src/model/malloy_query.ts b/packages/malloy/src/model/malloy_query.ts index fb2317093..1337dafc6 100644 --- a/packages/malloy/src/model/malloy_query.ts +++ b/packages/malloy/src/model/malloy_query.ts @@ -2499,6 +2499,7 @@ class QueryQuery extends QueryField { } else if (expr.node === 'aggregate') { if (isAsymmetricExpr(expr)) { if (expr.structPath) { + this.findRecordAliases(context, expr.structPath); this.addDependantPath( resultStruct, context,