lilic opened a new pull request, #26319: URL: https://github.com/apache/datafusion/pull/26319
Backport of #23706 by @xudong963. ## Which issue does this PR close? Part of https://github.com/apache/datafusion/issues/23805, originally closed #23705. ## Rationale for this change Arrow arrays containing no null values commonly omit the null bitmap. The whole-partition evaluation path for `LEAD` and `LAG` with `IGNORE NULLS` unconditionally unwrapped that optional bitmap, causing a panic for valid non-null input arrays. ## What changes are included in this PR? - Fall back to the existing regular shift implementation when the input has no null bitmap. - Add a regression test covering both `LEAD` and `LAG` with an array that explicitly has no null bitmap. ## Are these changes tested? Yes. ## Are there any user-facing changes? `LEAD` and `LAG` with `IGNORE NULLS` no longer panic when the input Arrow array has no null bitmap. There are no public API changes. (cherry picked from commit a8d1af6b8a82ded56eb547ad698b224c1f8bf7be) -- 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]
