From 9bf6f8a62cd2b69f9a1cd4c46a58db928ae14304 Mon Sep 17 00:00:00 2001 From: "chenxing.xc" Date: Wed, 18 Jul 2018 12:56:51 +0800 Subject: [PATCH] add test for #2663 --- dbms/tests/queries/0_stateless/00633_func_or_in.reference | 2 ++ dbms/tests/queries/0_stateless/00633_func_or_in.sql | 8 ++++++++ 2 files changed, 10 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00633_func_or_in.reference create mode 100644 dbms/tests/queries/0_stateless/00633_func_or_in.sql diff --git a/dbms/tests/queries/0_stateless/00633_func_or_in.reference b/dbms/tests/queries/0_stateless/00633_func_or_in.reference new file mode 100644 index 00000000000..b261da18d51 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00633_func_or_in.reference @@ -0,0 +1,2 @@ +1 +0 diff --git a/dbms/tests/queries/0_stateless/00633_func_or_in.sql b/dbms/tests/queries/0_stateless/00633_func_or_in.sql new file mode 100644 index 00000000000..8aa467b4ce8 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00633_func_or_in.sql @@ -0,0 +1,8 @@ +drop table if exists orin_test; + +create table orin_test (c1 Int32) engine=Memory; +insert into orin_test values(1), (100); + +select minus(c1 = 1 or c1=2 or c1 =3, c1=5) from orin_test; + +drop table orin_test;