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

test fix

parent 3b9cc55c
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
(metabase.driver.query_processor.interface DateTimeField
DateTimeValue
Field
OrderByAggregateField
Value)))
(declare apply-clause
......@@ -101,6 +102,18 @@
([this separator]
(apply str (interpose separator (rest (qualified-name-components this))))))
(defmethod field->name OrderByAggregateField
([this]
(field->name this nil))
([this _]
(let [{:keys [aggregation-type]} (:aggregation (:query *query*))]
(case aggregation-type
:avg "avg"
:count "count"
:distinct "count"
:stddev "stddev"
:sum "sum"))))
(defmethod field->name DateTimeField
([this]
(field->name (:field this)))
......
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