ClickHouse/tests/queries/0_stateless/00735_or_expr_optimize_bug.sql

8 lines
304 B
MySQL
Raw Normal View History

DROP TABLE IF EXISTS or_expr_bug;
CREATE TABLE or_expr_bug (a UInt64, b UInt64) ENGINE = Memory;
2018-10-12 10:34:37 +00:00
INSERT INTO or_expr_bug VALUES(1,21),(1,22),(1,23),(2,21),(2,22),(2,23),(3,21),(3,22),(3,23);
2018-10-12 10:34:37 +00:00
SELECT count(*) FROM or_expr_bug WHERE (a=1 OR a=2 OR a=3) AND (b=21 OR b=22 OR b=23);
2019-06-07 15:41:24 +00:00
DROP TABLE or_expr_bug;