diff --git a/src/metabase/query_processor/annotate.clj b/src/metabase/query_processor/annotate.clj index aac5497dbbee173705d2c3107182f8d10e3b62da..adc622e3eb796976ef160e97a4b2d963703e3532 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 6462413d4fbe785da3e2e1797ccd03db880ac2d9..9c6737c64f8325b556259e076c7b405a03ddebd7 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))