Skip to main content

IGroupByDateTrunc

Properties

as?

optional as?: string

Output key for this grouping. Defaults to "group" for a single groupBy, or group1/group2/... for multiple.


field

field: string


timezone?

optional timezone?: string

IANA timezone name, e.g. 'Europe/Kyiv'. Optional, defaults to UTC.


truncation

truncation: "day" | "week" | "month" | "year"


type

type: "date_trunc"