From 46c733ec11c6d320c81c3cf4e09b256a07fb6163 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 22 Dec 2017 01:59:03 +0300 Subject: [PATCH] Added test for the issue found by StarWix [#CLICKHOUSE-3]. --- .../0_stateless/00535_parse_float_scientific.reference | 1 + .../queries/0_stateless/00535_parse_float_scientific.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference create mode 100644 dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql diff --git a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference new file mode 100644 index 00000000000..825319e1c5b --- /dev/null +++ b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.reference @@ -0,0 +1 @@ +10000000 diff --git a/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql new file mode 100644 index 00000000000..810e6face22 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00535_parse_float_scientific.sql @@ -0,0 +1,7 @@ +DROP TABLE IF EXISTS test.float; +CREATE TABLE test.float (x Float64) ENGINE = Log; + +INSERT INTO test.float VALUES (1e7); +SELECT * FROM test.float; + +DROP TABLE test.float;