diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index 63b34fe..8a9dc9e 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -1447,7 +1447,7 @@ :returning #'format-selects :with-data #'format-with-data ;; NRQL extensions: - :facet #'format-selector + :facet #'format-selects :since #'format-interval :until #'format-interval :compare-with #'format-interval @@ -2331,7 +2331,7 @@ :where [:some :value] #_[:and [:= :environment "production"] [:= :process.name "match"]] - :facet [:some.metric :alias] + :facet [[:some.metric :alias]] :since [1 :day :ago] :timeseries [:auto]} {:dialect :nrql}) diff --git a/src/honey/sql/helpers.cljc b/src/honey/sql/helpers.cljc index d43f533..844c068 100644 --- a/src/honey/sql/helpers.cljc +++ b/src/honey/sql/helpers.cljc @@ -1023,7 +1023,7 @@ (defn facet "(facet [:metric.name :alias])" [& args] - (generic-1 :facet args)) + (generic :facet args)) (defn since "(since 2 :days :ago)"