-
- Downloads
Fix time-interval against expressions (#38488)
* Fix time-interval against expressions When simplifying time-interval filters, we forgot to place a temporal-unit on expressions, which meant that the date-trunc used by quarters had to match the date exactly rather than being in the interval range. * Update optimize temporal filters for expressions There is a dependency with this middleware and mongo. Without optimization mongo cannot compare the bucketed timestamps because AFAICT mongo 4 doesn't have date truncation so we do so in clojure for the compared literal but cannot do the lhs field/expression.
Showing
- src/metabase/mbql/util.cljc 1 addition, 1 deletionsrc/metabase/mbql/util.cljc
- src/metabase/query_processor/middleware/optimize_temporal_filters.clj 5 additions, 5 deletions.../query_processor/middleware/optimize_temporal_filters.clj
- test/metabase/query_processor/middleware/optimize_temporal_filters_test.clj 39 additions, 28 deletions...y_processor/middleware/optimize_temporal_filters_test.clj
- test/metabase/query_processor_test/date_bucketing_test.clj 20 additions, 0 deletionstest/metabase/query_processor_test/date_bucketing_test.clj
Loading
Please register or sign in to comment