-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: Fix edge cases in array_slice (#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
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters