Skip to content
Snippets Groups Projects
Commit c3fed41f authored by Ryan Senior's avatar Ryan Senior
Browse files

Switching binning metadata to use underscores

parent cf862c53
No related branches found
No related tags found
No related merge requests found
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
metabase.query_processor.interface.BinnedField metabase.query_processor.interface.BinnedField
(let [nested-field (:field this)] (let [nested-field (:field this)]
[(assoc nested-field :binning-info {:binning-strategy "num-bins" [(assoc nested-field :binning_info {:binning_strategy "num-bins"
:bin-width (:bin-width this) :bin_width (:bin-width this)
:num-bins (:num-bins this)})]) :num_bins (:num-bins this)})])
metabase.query_processor.interface.Field metabase.query_processor.interface.Field
(if-let [parent (:parent this)] (if-let [parent (:parent this)]
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
(expect-with-non-timeseries-dbs (expect-with-non-timeseries-dbs
(merge (venues-col :latitude) (merge (venues-col :latitude)
{:min_value 10.0646, :source :breakout, {: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] (tu/with-temporary-setting-values [breakout-bins-num 3]
(-> (data/run-query venues (-> (data/run-query venues
(ql/aggregation (ql/count)) (ql/aggregation (ql/count))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment