Skip to main content
Extracts the year from a date or timestamp value and returns it as the number of years since 1970, according to the Iceberg partition transforms specification.

Syntax

Parameters

Return type

INTEGER Returns the number of years since 1970. For dates before 1970, returns a negative value.

Remarks

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

Example

Rows: 1Execution time: 6.03ms