ClickHouse/tests/queries/0_stateless/02003_bug_from_23515.sql
2021-08-09 15:19:28 +03:00

11 lines
403 B
SQL

drop table if exists tab;
create table tab (a LowCardinality(String), b LowCardinality(String)) engine = MergeTree partition by a order by tuple() settings min_bytes_for_wide_part = 0, min_rows_for_wide_part = 0;
insert into tab values ('1', 'a'), ('2', 'b');
SELECT a = '1' FROM tab WHERE a = '1' and b='a';
-- Fuzzed
SELECT * FROM tab WHERE (a = '1') AND 0 AND (b = 'a');
drop table if exists tab;