Skip to content

Commit

Permalink
#510 make facet multi-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
seancorfield committed Oct 17, 2023
1 parent 5e9bdba commit 440b866
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/honey/sql.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion src/honey/sql/helpers.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@
(defn facet
"(facet [:metric.name :alias])"
[& args]
(generic-1 :facet args))
(generic :facet args))

(defn since
"(since 2 :days :ago)"
Expand Down

0 comments on commit 440b866

Please sign in to comment.