Open carlineng opened 1 year ago
Great catch — thanks for filing the issue. The language doesn't allow for multiple fields with the same "output" name in a query (gender
and cohort.gender
both have the same output name), and gives that error "Ambiguous output field name." if you try.
Probably the UI should force you to rename one of them if you try to do this.
Independent of the fix, we should probably catch errors that result from bad generated queries and handle them more gracefully...
Splitting unhandled exception out to https://github.com/malloydata/malloy-composer/issues/54
perhaps we could rename things, so this works without the user having to figure things out.
Using the Baby Names example, first add
gender
, then addcohort.gender
:Composer crashes with the error
Ambiguous output field name
: