Use keyword as datetime-diff units (#30439)
* Use keyword as datetime-diff units Fixes #29897. * Fix MLv2 round trip test Fields with :base-type :type/Text are not considered temporal expressions therefore :datetime-diff with such arguments is not a valid expression. Such expressions removed by the clean step of the conversion to pMBQL.
Showing
- src/metabase/lib/schema/expression/temporal.cljc 1 addition, 1 deletionsrc/metabase/lib/schema/expression/temporal.cljc
- test/metabase/query_processor_test/date_time_zone_functions_test.clj 4 additions, 4 deletions...se/query_processor_test/date_time_zone_functions_test.clj
- test/metabase/query_processor_test/test_mlv2.clj 0 additions, 4 deletionstest/metabase/query_processor_test/test_mlv2.clj
Please register or sign in to comment