jkosh44 opened a new pull request, #14489: URL: https://github.com/apache/datafusion/pull/14489
This commit fixes the following edge cases in the array_slice function so that it's semantics match DuckDB: - When begin < 0 and -begin > length, begin is clamped to the beginning of the list. - When step < 0 and begin = end, then the result should be a list with the single element found at index begin/end. Fixes #10548 ## Which issue does this PR close? Closes #10548. ## Are these changes tested? Yes ## Are there any user-facing changes? Yes, the behavior of `array_slice` has changed. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org