Dandandan opened a new issue, #20942:
URL: https://github.com/apache/datafusion/issues/20942

   ### Is your feature request related to a problem or challenge?
   
   Queries like `count(DISTINCT hits.SearchPhrase), count(DISTINCT 
hits.MobilePhone), count(DISTINCT hits.MobilePhoneModel)` still don't run in 
parallel as they can not be optimized using the `SingleDistinctToGroupBy` 
optimization. 
   
   ### Describe the solution you'd like
   
   Change it to issue the distinct queries in a separate stage, joining the 
results (either using join or union but join has a advantage on memory usage 
and cache locality as it runs them one by one).
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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