Liking cljdoc? Tell your friends :D

metabase.query-processor.middleware.auto-bucket-datetimes

Middleware for automatically bucketing unbucketed :type/DateTime (but not :type/Time) Fields with :day bucketing. Applies to any unbucketed Field in a breakout, or fields in a filter clause being compared against yyyy-MM-dd format datetime strings.

Middleware for automatically bucketing unbucketed `:type/DateTime` (but not `:type/Time`) Fields with `:day`
bucketing. Applies to any unbucketed Field in a breakout, or fields in a filter clause being compared against
`yyyy-MM-dd` format datetime strings.
raw docstring

auto-bucket-datetimesclj

(auto-bucket-datetimes qp)

Middleware that automatically wraps breakout and filter :field-id clauses in [:datetime-field ... :day] if the Field they refer to has a type that derives from :type/DateTime (but not :type/Time). (This is done for historic reasons, before datetime bucketing was added to MBQL; datetime Fields defaulted to breaking out by day. We might want to revisit this behavior in the future.)

Applies to any unbucketed Field in a breakout, or fields in a filter clause being compared against yyyy-MM-dd format datetime strings.

Middleware that automatically wraps breakout and filter `:field-id` clauses in `[:datetime-field ... :day]` if the
Field they refer to has a type that derives from `:type/DateTime` (but not `:type/Time`). (This is done for historic
reasons, before datetime bucketing was added to MBQL; datetime Fields defaulted to breaking out by day. We might
want to revisit this behavior in the future.)

Applies to any unbucketed Field in a breakout, or fields in a filter clause being compared against `yyyy-MM-dd`
format datetime strings.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close