-
- Downloads
Include field annotations for native queries too (#22962)
* Include field annotations for native queries too Persistence will replace a source-table source-query with a native query, but preprocess has still filled in source-metadata with all of the relevant field-ids expected to be returned. With this change we include field info from the store in the same way that mbql-cols does. This allows persisted models to honor field settings like `:visibility :details-only`. * Force type of merge-source-metadata-col to map By doing the lookup to store/field at the top of the merge, the type of annotations coming through was a FieldInstance. Tests, at least, were unhappy about this and it's better not to change it. * Resolve fields for ids in source-metadata Makes sure that the qp/store has all the available fields for annotations. * Recursively find source-metadata field-ids for annotations * Use transducer as per review
Please register or sign in to comment