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

   # Proposed changes
   
   Issue Number: close #xxx
   
   ## Problem summary
   
   sql like: 
   select k5, k6, SUM(k3) AS k3 
   from ( 
       select
           k5,
           date_format(k6, '%Y-%m-%d') as k6,
           count(distinct k3) as k3 
       from t 
       where 1=1 
       group by k5, k6
   ) AS temp where 1=1
   group by k5, k6;
   
   will throw exception since conjuncts planned on exchange node, now we skip 
exchange node when planning conjuncts, which fixes the bug. 
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## 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