time bucket returns the start of the fixed width interval a timestamp falls into, aligned to an origin you choose (for example, 15 minute or 3 month buckets).
time bucket returns the start of the fixed width interval a timestamp falls into, aligned to an origin you choose (for example, 15 minute or 3 month buckets). Use it instead of date trunc when the bucket width or start is not a calendar unit. Applies to: Databricks SQL Databricks Runtime 19 and above Returns the start of the fixed width time bucket that a timestamp falls into, aligned to an origin.
Reduces operational overhead and unlocks new capabilities for data teams on Databricks.
time bucket returns the start of the fixed width interval a timestamp falls into, aligned to an origin you choose (for example, 15 minute or 3 month buckets). Use it instead of date trunc when the bucket width or start is not a calendar unit.
Read the full documentation ↗