Skip to content
Snippets Groups Projects
Commit cb3c02e2 authored by Benyounes Moumni's avatar Benyounes Moumni
Browse files

address comments

parent 33ba042b
No related branches found
No related tags found
No related merge requests found
......@@ -443,8 +443,8 @@
{:dimension (->rvalue field)
:direction direction}))))
(defn sort-by-timestamp [field direction druid-query]
(assoc druid-query :descending (and (= (->rvalue field) "timestamp")
(defn- sort-by-timestamp [field direction druid-query]
(assoc druid-query :descending (and (instance? DateTimeField field)
(= direction :descending))))
(defmethod handle-order-by ::grouped-timeseries [_ {[{field :field, direction :direction}] :order-by} druid-query]
......
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