ClickHouse/tests/queries/0_stateless/01492_format_readable_quantity.sql
2022-02-28 16:06:39 +00:00

5 lines
202 B
SQL

WITH round(exp(number), 6) AS x, toUInt64(x) AS y, toInt32(min2(x, 2147483647)) AS z
SELECT formatReadableQuantity(x), formatReadableQuantity(y), formatReadableQuantity(z)
FROM system.numbers
LIMIT 45;