Skip to content
Snippets Groups Projects
Commit 2e1c6e1f authored by Paul Salaberria's avatar Paul Salaberria
Browse files

Fix merge conflicts

parent ad60312b
Branches
Tags
No related merge requests found
......@@ -73,9 +73,10 @@
(extend-protocol IDimensionOrMetric
Field (dimension-or-metric? [{:keys [base-type]}]
(cond
(isa? base-type :type/Text) :dimension
(isa? base-type :type/Float) :metric
(isa? base-type :type/Integer) :metric))
(isa? base-type :type/Text) :dimension
(isa? base-type :type/Float) :metric
(isa? base-type :type/Integer) :metric
(isa? base-type :type/DruidHyperUnique) :metric))
DateTimeField (dimension-or-metric? [this]
(dimension-or-metric? (:field this))))
......@@ -253,9 +254,7 @@
:fields [{:type :fieldAccess, :fieldName sum-name}
{:type :fieldAccess, :fieldName count-name}]}]}])
[:distinct _] [[(or output-name-kwd :distinct___count)]
{:aggregations [{:type :cardinality
:name (or output-name :distinct___count)
:fieldNames [(->rvalue ag-field)]}]}]
{:aggregations [(ag:distinct ag-field (or output-name :distinct___count))]}]
[:sum _] [[(or output-name-kwd :sum)] {:aggregations [(ag:doubleSum ag-field (or output-name :sum))]}]
[:min _] [[(or output-name-kwd :min)] {:aggregations [(ag:doubleMin ag-field (or output-name :min))]}]
[:max _] [[(or output-name-kwd :max)] {:aggregations [(ag:doubleMax ag-field (or output-name :max))]}])))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment