pchintar opened a new pull request, #22764:
URL: https://github.com/apache/datafusion/pull/22764

   ## Which issue does this PR close?
   
   - Closes #22763 .
   
   ## Rationale for this change
   
   Bounded sliding window queries using `covar_pop`, `covar_samp`, and `corr` 
currently fail with a `retract_batch is not implemented` error, preventing 
these aggregates from being used with sliding window frames.
   
   ## What changes are included in this PR?
   
   * Enable sliding window execution for `covar_pop`, `covar_samp`, and `corr` 
by advertising retract support in their accumulators.
   * Add SQL logic tests covering bounded sliding window execution for 
covariance and correlation aggregates.
   
   ## Are these changes tested?
   
   Yes.
   
   Added SQL logic tests covering:
   
   * Single-row bounded sliding frames
   * Multi-row bounded sliding frames
   
   for `covar_pop`, `covar_samp`, and `corr`.
   
   If tests are not included in your PR, please explain why (for example, are 
they covered by existing tests)?
   -->
   
   ## Are there any user-facing changes?
   
   Yes.
   
   `covar_pop`, `covar_samp`, and `corr` can now be used with bounded sliding 
window frames that previously failed with a `retract_batch is not implemented` 
error.
   
   One small thing: before opening the PR, I'd rerun the CLI repro after 
re-applying the code change so you can honestly say you verified the issue and 
the fix locally. Also, no changes were made to any public APIs.
   


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