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

Merge pull request #6817 from metabase/mysql-expression-name-fix

Fixup expression name issues on MySQL [ci drivers]
parents f08bf68f a0c3b8e4
Branches
Tags
No related merge requests found
......@@ -100,8 +100,10 @@
;; Custom aggregation expressions should include their type
(datasets/expect-with-engines (engines-that-support :expressions)
#{{:name "CATEGORY_ID" :base_type :type/Integer}
{:name "x" :base_type :type/Float}}
(conj #{{:name "x" :base_type :type/Float}}
(if (= datasets/*engine* :oracle)
{:name (data/format-name "category_id") :base_type :type/Decimal}
{:name (data/format-name "category_id") :base_type :type/Integer}))
(set (map #(select-keys % [:name :base_type])
(-> (data/run-query venues
(ql/aggregation (ql/named (ql/sum (ql/* $price -1)) "x"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment