From 90472293fd15d6eff0e69be0ef7bbfd5735f1b04 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 4 Oct 2019 12:22:07 +0300 Subject: [PATCH] Added test with function randConstant. --- dbms/tests/queries/0_stateless/01015_random_constant.reference | 3 +++ dbms/tests/queries/0_stateless/01015_random_constant.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/01015_random_constant.reference create mode 100644 dbms/tests/queries/0_stateless/01015_random_constant.sql diff --git a/dbms/tests/queries/0_stateless/01015_random_constant.reference b/dbms/tests/queries/0_stateless/01015_random_constant.reference new file mode 100644 index 00000000000..e8183f05f5d --- /dev/null +++ b/dbms/tests/queries/0_stateless/01015_random_constant.reference @@ -0,0 +1,3 @@ +1 +1 +1 diff --git a/dbms/tests/queries/0_stateless/01015_random_constant.sql b/dbms/tests/queries/0_stateless/01015_random_constant.sql new file mode 100644 index 00000000000..b25dd9420d7 --- /dev/null +++ b/dbms/tests/queries/0_stateless/01015_random_constant.sql @@ -0,0 +1,3 @@ +select randConstant() >= 0; +select randConstant() % 10 < 10; +select uniqExact(x) from (select randConstant() as x);