Skip to main content
Extracts the hour from a date or timestamp value and returns it as the number of hours since 1970-01-01 00:00:00 UTC, according to the Iceberg partition transforms specification.

Syntax

Parameters

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

The ICEBERG_HOUR function can be used in the PARTITION BY clause of CREATE ICEBERG TABLE commands.

Example

Rows: 1Execution time: 5.37ms