HUMANIZE_SIZE

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

Analyze Syntax

func.humanize_size(x);

Analyze Examples

func.humanize_size(1024 * 1024) +----------------------------------------+ | func.func.humanize_size((1024 * 1024)) | +----------------------------------------+ | 1 MiB | +----------------------------------------+

SQL Syntax

HUMANIZE_SIZE(x);

Arguments

ArgumentsDescription
xThe numerical size.

Return Type

String.

SQL Examples

SELECT HUMANIZE_SIZE(1024 * 1024) +-------------------------+ | HUMANIZE_SIZE((1024 * 1024)) | +-------------------------+ | 1 MiB | +-------------------------+