Skip to content
Snippets Groups Projects
Commit f998f693 authored by Cam Saül's avatar Cam Saül
Browse files

Fix :max aggregations for Druid :lightning:

parent 17e250fd
No related branches found
No related tags found
No related merge requests found
......@@ -112,11 +112,11 @@
(defn- ag:doubleMax [field]
(case (dimension-or-metric? field)
:metric {:type :doubleMin
:name :min
:metric {:type :doubleMax
:name :max
:fieldName (->rvalue field)}
:dimension {:type :javascript
:name :min
:name :max
:fieldNames [(->rvalue field)]
:fnReset "function() { return Number.MIN_VALUE ; }"
:fnAggregate "function(current, x) { return Math.max(current, (parseFloat(x) || Number.MIN_VALUE)); }"
......
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