alamb opened a new issue, #7198:
URL: https://github.com/apache/arrow-datafusion/issues/7198

   ### Is your feature request related to a problem or challenge?
   
   The following query pattern shows up in many of our usecases:
   
   ```sql
   SELECT tag, field, max(time)
   FROM t
   GROUP BY tag
   ORDER BY max(time) DESC
   LIMIT 10
   ```
   There may also be predicates 
   
   In English this query returns the top 10  groups that had the most recent 
values 
   
   A more specific example, @JayjeetAtGithub found that the 
[Jaeger](https://www.jaegertracing.io/) tool issues this query to show the top 
ten most recent queries
   
   
   ### Describe the solution you'd like
   
   Implement some sort of optimization for this query
   
   ### Describe alternatives you've considered
   
   I believe https://github.com/apache/arrow-datafusion/issues/7191 / 
https://github.com/apache/arrow-datafusion/pull/7192 from  @avantgardnerio is 
designed for this use case, so that may be sufficient. I did think  it was 
worth documenting the actual end user effect of the change as a separate item 
which is why I filed this ticket
   
   ### 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]

Reply via email to