-
- Downloads
Add the "bin-width" binning strategy
In MBQL you can now specify a bin-width binning strategy with a specified bin-width and the BinnedField will bin using that information. This commit also changes the existing behavior of the "default" binning strategy. When default is specified (for now) this uses the "num-bins" strategy with the globally set default number of bins (specified via setting). Specifying num-bins or bin-width requires an extra parameter specifying the number of bins or the bin width. Only default uses the global setting.
Showing
- src/metabase/query_processor/expand.clj 6 additions, 3 deletionssrc/metabase/query_processor/expand.clj
- src/metabase/query_processor/interface.clj 6 additions, 1 deletionsrc/metabase/query_processor/interface.clj
- src/metabase/query_processor/middleware/binning.clj 16 additions, 6 deletionssrc/metabase/query_processor/middleware/binning.clj
- src/metabase/query_processor/resolve.clj 14 additions, 3 deletionssrc/metabase/query_processor/resolve.clj
- test/metabase/query_processor/expand_resolve_test.clj 27 additions, 32 deletionstest/metabase/query_processor/expand_resolve_test.clj
- test/metabase/query_processor_test/breakout_test.clj 20 additions, 4 deletionstest/metabase/query_processor_test/breakout_test.clj
- test/metabase/query_processor_test/expressions_test.clj 2 additions, 1 deletiontest/metabase/query_processor_test/expressions_test.clj
Please register or sign in to comment