-
- Downloads
Throw reasonable error when incompatible temporal unit is used in time unit parameter (#46525)
* Throw reasonable error when incompatible temporal unit is used in time unit param * Remove redundant function * Add :curated flag to catch exceptions * Update test/metabase/query_processor_test/date_bucketing_test.clj Co-authored-by:Cam Saul <1455846+camsaul@users.noreply.github.com> * Address review remarks * Update test * Make vars private --------- Co-authored-by:
Cam Saul <1455846+camsaul@users.noreply.github.com>
Showing
- src/metabase/query_processor/middleware/catch_exceptions.clj 5 additions, 1 deletionsrc/metabase/query_processor/middleware/catch_exceptions.clj
- src/metabase/query_processor/middleware/parameters/mbql.clj 16 additions, 2 deletionssrc/metabase/query_processor/middleware/parameters/mbql.clj
- src/metabase/query_processor/middleware/validate_temporal_bucketing.clj 2 additions, 23 deletions...uery_processor/middleware/validate_temporal_bucketing.clj
- src/metabase/query_processor/util/temporal_bucket.clj 27 additions, 0 deletionssrc/metabase/query_processor/util/temporal_bucket.clj
- test/metabase/query_processor/middleware/catch_exceptions_test.clj 8 additions, 7 deletions...base/query_processor/middleware/catch_exceptions_test.clj
- test/metabase/query_processor_test/date_bucketing_test.clj 15 additions, 0 deletionstest/metabase/query_processor_test/date_bucketing_test.clj
Loading
Please register or sign in to comment