TD_TIME_BUCKET_NUMBER | Teradata Vantage - TD_TIME_BUCKET_NUMBER - Analytics Database - Teradata Vantage

Time Series Tables and Operations

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tuc1628112453431.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
sfz1493079039055
lifecycle
latest
Product Category
Teradata Vantageā„¢
The TD_TIME_BUCKET_NUMBER system function calculates the time bucket number. You can use this function with the HASHROW, HASHBUCKET, or HASHAMP functions to see how time series rows are distributed across the system. Other uses include:
  • Determining which candidate rows are assigned to which bucket in a GROUP BY TIME operation
  • Using the result in a join or to insert into a table if you assign bucket numbers to rows outside of a GROUP BY TIME operation

The return type of this function is BIGINT.

Usage Notes

You can reference this function in any SQL request where a system function call is valid.