malloydata / malloy

Malloy is an experimental language for describing data relationships and transformations.
http://www.malloydata.dev
MIT License
1.96k stars 76 forks source link

Refined queries should get a source class for the original query #160

Open christopherswenson opened 2 years ago

christopherswenson commented 2 years ago

Currently, the following query has no name and no source classes:

query: flights -> airport_dashboard {where: origin.code: 'SJC'}

Therefore, when it renders, it renders as a table.

Instead, it should inherit the source class (or even the name outright) from the original query (here, airport_dashboard), and therefore render as a dashboard.

mtoy-googly-moogly commented 2 years ago

Yeah this is a problem with refined turtles and name matching. If we had tags and rendered based on tags and not names, this would not be a problem.