mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-08 23:42:02 +00:00
13 lines
391 B
SQL
13 lines
391 B
SQL
--https://github.com/ClickHouse/ClickHouse/issues/5323
|
|
CREATE TABLE test_bug_optimization
|
|
(
|
|
`path` String
|
|
)
|
|
ENGINE = MergeTree
|
|
ORDER BY path;
|
|
|
|
WITH (path = 'test1') OR match(path, 'test2') OR (match(path, 'test3') AND match(path, 'test2')) OR match(path, 'test4') OR (path = 'test5') OR (path = 'test6') AS alias_in_error
|
|
SELECT count(1)
|
|
FROM test_bug_optimization
|
|
WHERE alias_in_error;
|