From c3fed41fa6cb0a5acd4b9f4e50c4a39811ace05a Mon Sep 17 00:00:00 2001 From: Ryan Senior <ryan@metabase.com> Date: Tue, 13 Jun 2017 11:40:55 -0500 Subject: [PATCH] Switching binning metadata to use underscores --- src/metabase/query_processor/annotate.clj | 6 +++--- test/metabase/query_processor_test/breakout_test.clj | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/metabase/query_processor/annotate.clj b/src/metabase/query_processor/annotate.clj index aac5497dbbe..adc622e3eb7 100644 --- a/src/metabase/query_processor/annotate.clj +++ b/src/metabase/query_processor/annotate.clj @@ -47,9 +47,9 @@ metabase.query_processor.interface.BinnedField (let [nested-field (:field this)] - [(assoc nested-field :binning-info {:binning-strategy "num-bins" - :bin-width (:bin-width this) - :num-bins (:num-bins this)})]) + [(assoc nested-field :binning_info {:binning_strategy "num-bins" + :bin_width (:bin-width this) + :num_bins (:num-bins this)})]) metabase.query_processor.interface.Field (if-let [parent (:parent this)] diff --git a/test/metabase/query_processor_test/breakout_test.clj b/test/metabase/query_processor_test/breakout_test.clj index 6462413d4fb..9c6737c64f8 100644 --- a/test/metabase/query_processor_test/breakout_test.clj +++ b/test/metabase/query_processor_test/breakout_test.clj @@ -115,7 +115,7 @@ (expect-with-non-timeseries-dbs (merge (venues-col :latitude) {:min_value 10.0646, :source :breakout, - :max_value 40.7794, :binning-info {:binning-strategy "num-bins", :bin-width 10.23827, :num-bins 3}}) + :max_value 40.7794, :binning_info {:binning_strategy "num-bins", :bin_width 10.23827, :num_bins 3}}) (tu/with-temporary-setting-values [breakout-bins-num 3] (-> (data/run-query venues (ql/aggregation (ql/count)) -- GitLab