为了更快的定位您的问题,请提供以下信息,谢谢
【详述】升级后发现一个多个正则匹配的sql有报错的情况 在3.3.7版本也可以复现
【背景】升级starrocks版本
【业务影响】
【是否存算分离】
【StarRocks版本】3.2.13、3.3.7
【集群规模】例如:3fe(1 follower+2observer)+5be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:48C/64G/万兆
【联系方式】社区群22 hpp
【附件】
本地复现方式
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 ‘%元红包%’ ;
可以本地复现就不发profile了 看了下具体的原因可能是优化的时候把spec_code not like的条件转成了like导致语义变更了
ConsolidateLikesRule这个规则如果匹配后 存在多个not like字段会把原有语义改写出该问题