Errors combining datetime interval addition with datetime functions (#26279)
* Add failing tests * Fix failing tests * Update shared/src/metabase/mbql/util.cljc Co-authored-by:Ngoc Khuat <qn.khuat@gmail.com> * datetime-add and datetime subtract should annotate type by col type * Fix infer-expression-type for datetime-add/subtract with second, minute, hour * Undo last commit; they actually always return :type/DateTime * Fix test based on last commit * Undo unrelated refactor * Only test drivers that support expressions * Only test drivers that support expressions, again * Update tests from legacy mbql * Change infered-col-type to be a function again, not macro * Fix test Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com>
Showing
- shared/src/metabase/mbql/schema.cljc 10 additions, 10 deletionsshared/src/metabase/mbql/schema.cljc
- shared/src/metabase/mbql/util.cljc 0 additions, 10 deletionsshared/src/metabase/mbql/util.cljc
- shared/test/metabase/mbql/util_test.cljc 0 additions, 8 deletionsshared/test/metabase/mbql/util_test.cljc
- src/metabase/driver/sql/query_processor.clj 2 additions, 2 deletionssrc/metabase/driver/sql/query_processor.clj
- src/metabase/query_processor/middleware/annotate.clj 18 additions, 1 deletionsrc/metabase/query_processor/middleware/annotate.clj
- test/metabase/query_processor/middleware/annotate_test.clj 16 additions, 0 deletionstest/metabase/query_processor/middleware/annotate_test.clj
- test/metabase/query_processor_test/date_time_zone_functions_test.clj 18 additions, 1 deletion...se/query_processor_test/date_time_zone_functions_test.clj
Please register or sign in to comment