ClickHouse/tests/queries/0_stateless/01492_format_readable_quantity.sql
2020-09-10 16:54:52 +00:00

5 lines
184 B
SQL

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