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

Omit :effective-type from legacy MBQL queries (#30469)

* Omit :effective-type from legacy MBQL queries

Fixes #30461.
parent 07424f77
No related branches found
No related tags found
No related merge requests found
......@@ -326,7 +326,7 @@
[id opts])]
[:field
(->legacy-MBQL id)
(not-empty (disqualify opts))]))
(options->legacy-MBQL opts)]))
(defmethod ->legacy-MBQL :value
[[_tag opts value]]
......
......@@ -140,10 +140,11 @@
:stages [{:lib/type :mbql.stage/mbql
:source-table 1
:aggregation [[:sum {:lib/uuid ag-uuid}
[:field {:lib/uuid string?} 1]]]
[:field {:lib/uuid string?
:effective-type :type/Integer} 1]]]
:breakout [[:aggregation
{:display-name "Revenue"
:effective_type :type/Integer}
:effective-type :type/Integer}
ag-uuid]]}]}))))))
(deftest ^:parallel round-trip-test
......
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