From 1452e1ab3085c437f7834c531f8a536ccdc9b783 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 7 Aug 2020 03:46:49 +0300 Subject: [PATCH] Added a test for hex floats in INSERT VALUES --- tests/queries/0_stateless/01433_hex_float.reference | 2 ++ tests/queries/0_stateless/01433_hex_float.sql | 4 ++++ 2 files changed, 6 insertions(+) create mode 100644 tests/queries/0_stateless/01433_hex_float.reference create mode 100644 tests/queries/0_stateless/01433_hex_float.sql diff --git a/tests/queries/0_stateless/01433_hex_float.reference b/tests/queries/0_stateless/01433_hex_float.reference new file mode 100644 index 00000000000..a49ea94b283 --- /dev/null +++ b/tests/queries/0_stateless/01433_hex_float.reference @@ -0,0 +1,2 @@ +0.123 +1 diff --git a/tests/queries/0_stateless/01433_hex_float.sql b/tests/queries/0_stateless/01433_hex_float.sql new file mode 100644 index 00000000000..124a1ab0736 --- /dev/null +++ b/tests/queries/0_stateless/01433_hex_float.sql @@ -0,0 +1,4 @@ +CREATE TEMPORARY TABLE t (x Float64); +INSERT INTO t VALUES (0x1.f7ced916872b0p-4); +SELECT * FROM t; +SELECT x = 0x1.f7ced916872b0p-4 FROM t;