TO_START_OF_FIVE_MINUTES (Lakehouse v1)
Arrondit une date avec heure (horodatage/datetime) au début de l’intervalle de cinq minutes.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.to_start_of_five_minutes(<expr>)Exemples Analyze
Section intitulée « Exemples Analyze »func.to_start_of_five_minutes('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────────────────┐│ func.to_start_of_five_minutes('2023-11-12 09:38:18.165575') ││ Timestamp │├────────────────────────────────────────────────────────────────┤│ 2023-11-12 09:35:00 │└────────────────────────────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »TO_START_OF_FIVE_MINUTES(<expr>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<expr> |
horodatage |
Type de retour
Section intitulée « Type de retour »TIMESTAMP, renvoie la date au format « YYYY-MM-DD hh:mm:ss.ffffff ».
Exemples SQL
Section intitulée « Exemples SQL »SELECT to_start_of_five_minutes('2023-11-12 09:38:18.165575')
┌────────────────────────────────────────────────────────┐│ to_start_of_five_minutes('2023-11-12 09:38:18.165575') ││ Timestamp │├────────────────────────────────────────────────────────┤│ 2023-11-12 09:35:00 │└────────────────────────────────────────────────────────┘