-
- Downloads
Cannot use filter relative interval on breakout fields (#28799) (#28930)
Fixes #25378
When using a relative filter with a starting from n units ago on an
aggregation with the same units, we were incorrectly assuming that we
would be working with a field ref at the top level. However, in this
scenario the field is nested such as `[:+ [:field $created_at
{:temporal-unit :month}] [:interval 1 :month]]`. This change makes sure
that we are altering the field-ref.
Co-authored-by:
Case Nelson <case@metabase.com>
Showing
- e2e/test/scenarios/filters/reproductions/25378-relative-date-on-breakout.cy.spec.js 1 addition, 1 deletion.../reproductions/25378-relative-date-on-breakout.cy.spec.js
- src/metabase/query_processor/middleware/optimize_temporal_filters.clj 3 additions, 1 deletion.../query_processor/middleware/optimize_temporal_filters.clj
- test/metabase/query_processor/middleware/optimize_temporal_filters_test.clj 24 additions, 0 deletions...y_processor/middleware/optimize_temporal_filters_test.clj
Please register or sign in to comment