ZhangYu0123 opened a new pull request, #20143:
URL: https://github.com/apache/doris/pull/20143

   ## Proposed changes
   
   Add fast path for col like '%%' or col like '%' or regexp '\\.*' 
   (1) like   about 34%  speed up when use count() test
       support  col like '%%' , col like '%', col not like '%%' , col not like 
'%'
   (2) regexp  about 37%  speed up when use count() test
       support col regexp '\\.*',  col not regexp '\\.*'
   
   Q1: select count() From hits where url like '%';       
   Q2: select count() From hits where url regexp '\\.*';
   
   before:
   <img width="543" alt="image" 
src="https://github.com/apache/doris/assets/67053339/caa79ee9-02f0-446b-8940-b7b47c05a7b8";>
   
   <img width="578" alt="image" 
src="https://github.com/apache/doris/assets/67053339/25e8a84c-d4cf-4796-931d-53bd5717292a";>
   
   after:
   <img width="564" alt="image" 
src="https://github.com/apache/doris/assets/67053339/7dda3dcd-7055-4f49-a3de-ae9c78584e6d";>
   <img width="580" alt="image" 
src="https://github.com/apache/doris/assets/67053339/d4ca39b9-0ec3-4fc0-8015-3c4afb39470c";>
   
   
   <--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to