Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple not like filter rewrites error #55352

Open
hpphpp opened this issue Jan 23, 2025 · 2 comments
Open

Multiple not like filter rewrites error #55352

hpphpp opened this issue Jan 23, 2025 · 2 comments
Labels
type/bug Something isn't working

Comments

@hpphpp
Copy link

hpphpp commented Jan 23, 2025

Steps to reproduce the behavior (Required)

中文论坛帖子https://forum.mirrorship.cn/t/topic/17023

reproduction step
create table test_regexp2(order_status varchar(1000),spec_code varchar(1000),product_name varchar(1000));
insert into test_regexp2 values(‘已发货’,‘Y1LS0700094’,‘高钙牛乳棒’);
select * from test_regexp2 where order_status = ‘已发货’ and spec_code not like ‘%test%’ and product_name not like ‘%差价%’ and product_name not like ‘%元红包%’ ;

this bug is cause by ConsolidateLikesRule this rule

Expected behavior (Required)

select one record

Real behavior (Required)

select empty set

StarRocks version (Required)

  • You can get the StarRocks version by executing SQL select current_version()
    3.2.11 and 3.3.7
@hpphpp hpphpp added the type/bug Something isn't working label Jan 23, 2025
@before-Sunrise
Copy link
Contributor

@satanson

@LiShuMing
Copy link
Contributor

This should be already fixed by #53311

You can upgrade to 3.3.9 and recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants