0xamlab opened a new pull request, #27313: URL: https://github.com/apache/datafusion/pull/27313
## Which issue does this PR close? - Closes #27284. ## Rationale for this change Offset zero selects the current row, so a NULL current value must remain NULL rather than produce the default. ## What changes are included in this PR? The fix aligns the stateful evaluator with `evaluate_all_with_ignore_null` for zero-offset `LEAD`/`LAG`. ## What is the testing strategy for this PR? The new regression covers `LEAD` and `LAG`, nonzero offsets, and batch evaluation, including NULL and non-NULL current rows with and without defaults. All 9 window SQL logic test files passed. Workspace Clippy passed with `-D warnings`. ## Are there any user-facing changes? Zero-offset `LEAD`/`LAG IGNORE NULLS` now preserves a NULL current 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: [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]
