malloy icon indicating copy to clipboard operation
malloy copied to clipboard

Sources with only complex columns generate internal error

Open whscullin opened this issue 1 year ago • 1 comments

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

  1. Create a source with only complex columns:
source: ary is duckdb.sql("SELECT [1,2,3] AS a")
  1. Click "Preview"

OS:

all

Malloy Client:

all

Malloy Client Version:

latest

Database Connection:

all

whscullin avatar Oct 27 '23 17:10 whscullin

Appears to come from this line: https://github.com/malloydata/malloy/blob/main/packages/malloy/src/model/malloy_query.ts#L2687

whscullin avatar Oct 27 '23 17:10 whscullin