YEAR (Lakehouse v2)
Returns the year from a date.
Analyze Syntax
Section titled “Analyze Syntax”func.year(<date>)Analyze Examples
Section titled “Analyze Examples”func.year('2024-06-15')
┌──────┐│ 2024 │└──────┘SQL Syntax
Section titled “SQL Syntax”YEAR(<date>)SQL Examples
Section titled “SQL Examples”SELECT YEAR('2024-06-15');
┌──────┐│ 2024 │└──────┘