TO_START_OF_ISO_YEAR (Lakehouse v1)
Returns the first day of the ISO year for a date or a date with time (timestamp/datetime).
Analyze Syntax
Section titled “Analyze Syntax”func.to_start_of_iso_year(<expr>)Analyze Examples
Section titled “Analyze Examples”func.to_start_of_iso_year('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────────────────┐│ func.to_start_of_iso_year('2023-11-12 09:38:18.165575') ││ Date │├────────────────────────────────────────────────────────────────┤│ 2023-01-02 │└────────────────────────────────────────────────────────────────┘SQL Syntax
Section titled “SQL Syntax”TO_START_OF_ISO_YEAR(<expr>)Arguments
Section titled “Arguments”| Arguments | Description |
|---|---|
<expr> | date/timestamp |
Return Type
Section titled “Return Type”DATE, returns date in “YYYY-MM-DD” format.
SQL Examples
Section titled “SQL Examples”SELECT to_start_of_iso_year('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────┐│ to_start_of_iso_year('2023-11-12 09:38:18.165575') ││ Date │├────────────────────────────────────────────────────┤│ 2023-01-02 │└────────────────────────────────────────────────────┘