#510 make facet multi-arg

This commit is contained in:
Sean Corfield 2023-10-17 11:59:25 -07:00
parent 5e9bdba777
commit 440b86633a
2 changed files with 3 additions and 3 deletions

View file

@ -1447,7 +1447,7 @@
:returning #'format-selects :returning #'format-selects
:with-data #'format-with-data :with-data #'format-with-data
;; NRQL extensions: ;; NRQL extensions:
:facet #'format-selector :facet #'format-selects
:since #'format-interval :since #'format-interval
:until #'format-interval :until #'format-interval
:compare-with #'format-interval :compare-with #'format-interval
@ -2331,7 +2331,7 @@
:where [:some :value] :where [:some :value]
#_[:and [:= :environment "production"] #_[:and [:= :environment "production"]
[:= :process.name "match"]] [:= :process.name "match"]]
:facet [:some.metric :alias] :facet [[:some.metric :alias]]
:since [1 :day :ago] :since [1 :day :ago]
:timeseries [:auto]} :timeseries [:auto]}
{:dialect :nrql}) {:dialect :nrql})

View file

@ -1023,7 +1023,7 @@
(defn facet (defn facet
"(facet [:metric.name :alias])" "(facet [:metric.name :alias])"
[& args] [& args]
(generic-1 :facet args)) (generic :facet args))
(defn since (defn since
"(since 2 :days :ago)" "(since 2 :days :ago)"