SQL
ReleaseWorth evaluating
time_bucket rounds a timestamp to a fixed window
From Databricks release notes
The function returns the start of the fixed-width interval a timestamp falls into, aligned to an origin you choose. Generally available, and it removes the date_trunc-and-arithmetic dance from most time-series grouping.
What to re-read
More from SQL
- ReleaseDocument Intelligence REST APIs for parse, extract and classify reach GA
- PreviewPredictive AI Functions enter Beta: forecasting, anomalies and predictions in SQL
- Releaseai_parse_document now returns chart values as structured JSON
- ReleaseStandard ai_extract moves to a faster model checkpoint