TO_START_OF_ISO_YEAR (Lakehouse v1)
Renvoie le premier jour de l’année ISO pour une date ou une date avec heure (horodatage/datetime).
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.to_start_of_iso_year(<expr>)Exemples Analyze
Section intitulée « Exemples Analyze »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 │└────────────────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TO_START_OF_ISO_YEAR(<expr>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<expr> |
date/horodatage |
Type de retour
Section intitulée « Type de retour »DATE, renvoie la date au format « YYYY-MM-DD ».
Exemples SQL
Section intitulée « Exemples SQL »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 │└────────────────────────────────────────────────────┘