YEARWEEK (Lakehouse v2)
Returns the year and week number for a date as an integer.
Analyze Syntax
Section titled “Analyze Syntax”func.yearweek(<date>[, <mode>])Analyze Examples
Section titled “Analyze Examples”func.yearweek('2024-06-15')
┌────────┐│ 202424 │└────────┘SQL Syntax
Section titled “SQL Syntax”YEARWEEK(<date>[, <mode>])SQL Examples
Section titled “SQL Examples”SELECT YEARWEEK('2024-06-15');
┌────────┐│ 202424 │└────────┘