alamb commented on issue #5472:
URL: 
https://github.com/apache/arrow-datafusion/issues/5472#issuecomment-1638619181

   I was thinking something like the following (templated on primitive type):
   
   ```rust
   struct CountDistinctGroupsAccumulator<T: ArrowPrimitiveType> {
     values: HashSet<T>,
   }
   ```
   
   Then use `DataType::List` as we do today to pass intermediate state
   
   
   > Also there are probably more opportunities to rewrite queries (i.e. 
rewrite select distinct + join on the group by keys might work faster in some 
cases).
   
   that is also quite interesting


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