malloy
malloy copied to clipboard
Sources with only complex columns generate internal error
What happens?
If you have a source that only has columns that are non-scalar, like
source: ary is duckdb.sql("SELECT [1,2,3] AS a")
you get the message:
undefined is not iterable (cannot read property Symbol(Symbol.iterator))
which is coming from
To Reproduce
- Create a source with only complex columns:
source: ary is duckdb.sql("SELECT [1,2,3] AS a")
- Click "Preview"
OS:
all
Malloy Client:
all
Malloy Client Version:
latest
Database Connection:
all
Appears to come from this line: https://github.com/malloydata/malloy/blob/main/packages/malloy/src/model/malloy_query.ts#L2687