From f8bf45a5ec90c50a1c1b48c7cb6433f77947c3ae Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Thu, 17 Aug 2017 22:57:38 +0300 Subject: [PATCH] added test [#CLICKHOUSE-3237] --- .../0_stateless/00495_reading_const_zero_column.reference | 0 .../queries/0_stateless/00495_reading_const_zero_column.sql | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00495_reading_const_zero_column.reference create mode 100644 dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql diff --git a/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.reference b/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql b/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql new file mode 100644 index 00000000000..ad94b9c06b3 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00495_reading_const_zero_column.sql @@ -0,0 +1,5 @@ +drop table if exists one_table; +create table one_table (date Date, one UInt64) engine = MergeTree(date, (date, one), 8192); +insert into one_table select today(), toUInt64(1) from system.numbers limit 100000; +SET preferred_block_size_bytes = 8192; +select isNull(one) from one_table where isNull(one);