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);