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

   ### Is your feature request related to a problem or challenge?
   
   array_agg currently works as a window aggregate for ever-expanding frames 
such as ```ROW BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW```, but it cannot be 
used with bounded/sliding frames because its accumulator does not implement 
retract_batch.
   
   ### Describe the solution you'd like
   
   It would be useful to implement retract_batch for at least the non-DISTINCT 
array_agg accumulator such that at least such a query would be possible
   
   ```sql
   SELECT array_agg(x) OVER (
        ORDER BY t 
        ROWS BETWEEN 1 PRECEDING AND CURRENT ROW
   )
   FROM ...```
   
   ### 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