HUMANIZE_SIZE (Lakehouse v1)
Renvoie la taille lisible avec un suffixe (KiB, MiB, etc.).
Syntaxe Analyze
Section intitulée « Syntaxe Analyze »func.humanize_size(x);Exemples Analyze
Section intitulée « Exemples Analyze »func.humanize_size(1024 * 1024)┌────────────────────────────────────────┐│ func.func.humanize_size((1024 * 1024)) │├────────────────────────────────────────┤│ 1 MiB │└────────────────────────────────────────┘Syntaxe SQL
Section intitulée « Syntaxe SQL »HUMANIZE_SIZE(x);Arguments
Section intitulée « Arguments »| Arguments | Description |
|---|---|
| x | La taille numérique. |
Type de retour
Section intitulée « Type de retour »Chaîne.
Exemples SQL
Section intitulée « Exemples SQL »SELECT HUMANIZE_SIZE(1024 * 1024)┌─────────────────────────┐│ HUMANIZE_SIZE((1024 * 1024)) │├─────────────────────────┤│ 1 MiB │└─────────────────────────┘