You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MergeTree, filter: regexp with '?', negation with 'not' produce wrong results #92492
Expecting these queries produce the same results, but they don't:
using MergeTree as a source:
create or replace table in1 engine = MergeTree() order by url as
select 'http://example1.com/' as url;
-- expected: 1; returned: 0 - WRONG
select count(*) from in1
where not match(url, '^https?://clickhouse[.]com/');
using CTE as a source:
-- same inputs, same regexp, same query, but without MergeTree
-- expected: 1 row; returned: 1 row - CORRECT
with
in1 as (
select 'http://example1.com/' as url
)
select count(*)
from in1
where not match(url, '^https?://clickhouse[.]com/');
It's a bug with KeyCondition.
If I replace create or replace table in1 engine = MergeTree() order by url to create or replace table in1 engine = MergeTree() order by tuple() it works fine
Activity
KochetovNicolai commentedon Dec 19, 2025
It's a bug with KeyCondition.
If I replace
create or replace table in1 engine = MergeTree() order by urltocreate or replace table in1 engine = MergeTree() order by tuple()it works fine