Open bporterfield opened 4 months ago
Current workaround is to do something like func!(args) + sum(0)
. the sum(0)
"tricks" the compiler into realizing this is an aggregate function, so it works. Probably a way to do it for cases where func!(args)
returns a string, but regardless, this workaround is a gross hack and we should do something to fix it.
What happens?
Trying to use
array_agg!
on a dimension from ajoin_many
but being told "Cannot use a scalar field in a measure declaration, did you mean to use a dimension declaration instead?". Using the internalstring_agg
does work on the same dimension though...To Reproduce
Join many something and try to do aggregating database function on a joined dimension
OS:
macOS
Malloy Client:
local VSCode
Malloy Client Version:
latest
Database Connection:
Postgres