Extracts the day from a date or timestamp value and returns it as the number of days since 1970-01-01, according to the Iceberg partition transforms specification.Documentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<value> | The date or timestamp value to extract the day from. | DATE, TIMESTAMP, TIMESTAMPTZ |
Return type
INTEGER
Returns the number of days since 1970-01-01. For dates before 1970-01-01, returns a negative value.
Remarks
TheICEBERG_DAY function can be used in the PARTITION BY clause of CREATE ICEBERG TABLE commands.
Example
| day_partition |
|---|
| 20437 |