diff --git a/tests/queries/0_stateless/01492_format_readable_quantity.reference b/tests/queries/0_stateless/01492_format_readable_quantity.reference new file mode 100644 index 00000000000..3736933b5ee --- /dev/null +++ b/tests/queries/0_stateless/01492_format_readable_quantity.reference @@ -0,0 +1,50 @@ +1.00 1.00 1.00 +2.72 2.00 2.00 +7.39 7.00 7.00 +20.09 20.00 20.00 +54.60 54.00 54.00 +148.41 148.00 148.00 +403.43 403.00 403.00 +1.10 thousand 1.10 thousand 1.10 thousand +2.98 thousand 2.98 thousand 2.98 thousand +8.10 thousand 8.10 thousand 8.10 thousand +22.03 thousand 22.03 thousand 22.03 thousand +59.87 thousand 59.87 thousand 59.87 thousand +162.75 thousand 162.75 thousand 162.75 thousand +442.41 thousand 442.41 thousand 442.41 thousand +1.20 million 1.20 million 1.20 million +3.27 million 3.27 million 3.27 million +8.89 million 8.89 million 8.89 million +24.15 million 24.15 million 24.15 million +65.66 million 65.66 million 65.66 million +178.48 million 178.48 million 178.48 million +485.17 million 485.17 million 485.17 million +1.32 billion 1.32 billion 1.32 billion +3.58 billion 3.58 billion -2.15 billion +9.74 billion 9.74 billion -2.15 billion +26.49 billion 26.49 billion -2.15 billion +72.00 billion 72.00 billion -2.15 billion +195.73 billion 195.73 billion -2.15 billion +532.05 billion 532.05 billion -2.15 billion +1.45 trillion 1.45 trillion -2.15 billion +3.93 trillion 3.93 trillion -2.15 billion +10.69 trillion 10.69 trillion -2.15 billion +29.05 trillion 29.05 trillion -2.15 billion +78.96 trillion 78.96 trillion -2.15 billion +214.64 trillion 214.64 trillion -2.15 billion +583.46 trillion 583.46 trillion -2.15 billion +1.59 quadrillion 1.59 quadrillion -2.15 billion +4.31 quadrillion 4.31 quadrillion -2.15 billion +11.72 quadrillion 11.72 quadrillion -2.15 billion +31.86 quadrillion 31.86 quadrillion -2.15 billion +86.59 quadrillion 86.59 quadrillion -2.15 billion +235.39 quadrillion 235.39 quadrillion -2.15 billion +639.84 quadrillion 639.84 quadrillion -2.15 billion +1739.27 quadrillion 1739.27 quadrillion -2.15 billion +4727.84 quadrillion 4727.84 quadrillion -2.15 billion +12851.60 quadrillion 12851.60 quadrillion -2.15 billion +34934.27 quadrillion 0.00 -2.15 billion +94961.19 quadrillion 0.00 -2.15 billion +258131.29 quadrillion 0.00 -2.15 billion +701673.59 quadrillion 0.00 -2.15 billion +1907346.57 quadrillion 0.00 -2.15 billion diff --git a/tests/queries/0_stateless/01492_format_readable_quantity.sql b/tests/queries/0_stateless/01492_format_readable_quantity.sql new file mode 100644 index 00000000000..c2ebcfc1a97 --- /dev/null +++ b/tests/queries/0_stateless/01492_format_readable_quantity.sql @@ -0,0 +1,4 @@ +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;