Skip to content

Returns the readable size with a suffix(KiB, MiB, etc).

func.humanize_size(x);
func.humanize_size(1024 * 1024)
┌────────────────────────────────────────┐
│ func.func.humanize_size((1024 * 1024)) │
├────────────────────────────────────────┤
1 MiB │
└────────────────────────────────────────┘
HUMANIZE_SIZE(x);
ArgumentsDescription
xThe numerical size.

String.

SELECT HUMANIZE_SIZE(1024 * 1024)
┌─────────────────────────┐
│ HUMANIZE_SIZE((1024 * 1024)) │
├─────────────────────────┤
1 MiB │
└─────────────────────────┘