-
- Downloads
Fixes filters against datetime binned expressions (#38874)
* Fixes filters against datetime binned expressions Fixes #33528 Turns out that `mbql/normalize` and `lib/normalize` behaved slightly different and `[:expression "abc" {...}]` refs would drop their opts in the former path. In order to properly query against binned datetimes it's important that expression ref does not lose its type or else the optimizer will not see that `time-interval` needs to convert to a `between` rather than an `=`. * Fix test * Only keep specific keys on expression opts for these expression filters * Don't run checkin dataset on snowflake or athena
Showing
- src/metabase/mbql/normalize.cljc 25 additions, 13 deletionssrc/metabase/mbql/normalize.cljc
- test/metabase/mbql/normalize_test.cljc 31 additions, 25 deletionstest/metabase/mbql/normalize_test.cljc
- test/metabase/query_processor_test/date_bucketing_test.clj 23 additions, 0 deletionstest/metabase/query_processor_test/date_bucketing_test.clj
Please register or sign in to comment