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

   ## Proposed changes
   
   Current cte common filter extraction is broken if the filters can be 
aggregated, which will lead the common filter can't be pushed down inside cte. 
Consider the following case:
   with main as (select c1 from t1) select * from (select m1.* from main m1, 
main m2 where m1.c1 = m2.c1) abc where c1 = 1;
   The common c1=1 filter can't be pushed down.
   
   This pr fixed the original extraction logic from set to list to make the 
logic works, and this will also resolve the tpcds query4/11's pattern works 
well back.
   
   ## 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