Skip to content
Snippets Groups Projects
Unverified Commit 7e13d9be authored by metamben's avatar metamben Committed by GitHub
Browse files

Set :lib/source-uuid from the field ref, not from column metadata (#48472)

parent 0fb1063d
No related branches found
No related tags found
No related merge requests found
...@@ -162,12 +162,12 @@ ...@@ -162,12 +162,12 @@
metadata metadata
[_tag {source-uuid :lib/uuid :keys [base-type binning effective-type join-alias source-field temporal-unit], :as opts} :as field-ref]] [_tag {source-uuid :lib/uuid :keys [base-type binning effective-type join-alias source-field temporal-unit], :as opts} :as field-ref]]
(let [metadata (merge (let [metadata (merge
{:lib/type :metadata/column {:lib/type :metadata/column}
:lib/source-uuid source-uuid}
metadata metadata
{:display-name (or (:display-name opts) {:display-name (or (:display-name opts)
(lib.metadata.calculation/display-name query stage-number field-ref))})] (lib.metadata.calculation/display-name query stage-number field-ref))})]
(cond-> metadata (cond-> metadata
source-uuid (assoc :lib/source-uuid source-uuid)
base-type (assoc :base-type base-type, :effective-type base-type) base-type (assoc :base-type base-type, :effective-type base-type)
effective-type (assoc :effective-type effective-type) effective-type (assoc :effective-type effective-type)
temporal-unit (assoc ::temporal-unit temporal-unit) temporal-unit (assoc ::temporal-unit temporal-unit)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment