Skip to content
Snippets Groups Projects
Commit 771c489f authored by Ryan Senior's avatar Ryan Senior Committed by GitHub
Browse files

Merge pull request #5862 from metabase/expressions-with-type-info

Add type information to expression columns
parents 835dae9c c0dc5074
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,10 @@
:field-display-name (humanization/name->human-readable-name (:field-name this)))]
metabase.query_processor.interface.ExpressionRef
[(assoc this :field-display-name (:expression-name this))]
[(assoc this
:field-display-name (:expression-name this)
:base-type :type/Float
:special-type :type/Number)]
;; for every value in a map in the query we'll descend into the map and find all the fields contained therein and mark the key as each field's source.
;; e.g. if we descend into the `:breakout` columns for a query each field returned will get a `:source` of `:breakout`
......
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