Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<value> | The date or timestamp value to extract the hour from. | DATE, TIMESTAMP, TIMESTAMPTZ |
Return type
INTEGER
Returns the number of hours since 1970-01-01 00:00:00 UTC. For timestamps before this epoch, returns a negative value.
Remarks
TheICEBERG_HOUR function can be used in the PARTITION BY clause of CREATE ICEBERG TABLE commands.
Example
| hour_partition |
|---|
| 490502 |