malloydata / malloy

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

Add a unique reference ID to resultMetadata #1943

Closed christopherswenson closed 1 month ago

christopherswenson commented 1 month ago

Each field in a result will now have a referenceId in the resultMetadata. This id should be the same for fields which are references to the same definition. Fields which are inline definitions in the query also get a reference id, it will just be unique.

This is to allow consumers of Malloy results to check whether two fields appearing in a result are the same—e.g. to add cross-chart interactions for the charts which use the same field.