TIME_SLOT (Lakehouse v1)
Arrondit l’heure à la demi-heure.
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.time_slot(<expr>)Exemples Analyze
Section intitulée « Exemples Analyze »func.time_slot('2023-11-12 09:38:18.165575')┌───────────────────────────────-───-───-──────┐│ func.time_slot('2023-11-12 09:38:18.165575') ││ Timestamp │├─────────────────────────────────-───-────────┤│ 2023-11-12 09:30:00 │└─────────────────────────────────-───-────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »time_slot(<expr>)Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
<expr> |
horodatage |
Type de retour
Section intitulée « Type de retour »TIMESTAMP, renvoyé au format « YYYY-MM-DD hh:mm:ss.ffffff ».
Exemples SQL
Section intitulée « Exemples SQL »SELECT time_slot('2023-11-12 09:38:18.165575')
┌─────────────────────────────────────────┐│ time_slot('2023-11-12 09:38:18.165575') ││ Timestamp │├─────────────────────────────────────────┤│ 2023-11-12 09:30:00 │└─────────────────────────────────────────┘