mingmwang commented on PR #6045:
URL: 
https://github.com/apache/arrow-datafusion/pull/6045#issuecomment-1513390720

   I'm afraid the current approach will not work in below case, additional Hash 
Repartition will still be added:
   
   ```sql
   select count(*) from {
   select distinct name from table t1
   union all
   select distinct name from table t2
   ) group by name
   ```


-- 
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]

Reply via email to