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.
Each field in a result will now have a
referenceId
in theresultMetadata
. 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.