liukun4515 commented on issue #10630:
URL: https://github.com/apache/datafusion/issues/10630#issuecomment-2133064530

   > > GroupedTopKAggregateStream
   > 
   > I believe @avantgardnerio / @thinkharderdev worked on this code, as part 
of #7192
   > 
   > I agree it is strange to be using that operator given a SQL without an 
aggregate. I thought it only kicked in if there was a `MIN` or `MAX` aggregate 🤔
   
   it's normal, if just want to get the distinct value for one or several 
column, and using the bellow sql:
   
   ```
   select distinct column from table limit n
   
   select column from table group by column limit n
   ```
   
   The usages is from our cases, customer want to get the distinct value


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to