forked from apache/spark
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-37533][SQL][FOLLOWUP] try_element_at should throw an error on …
…0 array index ### What changes were proposed in this pull request? Change the new function `try_element_at` to throw an error on 0 array index ### Why are the changes needed? As srielau points out in apache@f705e52#commitcomment-61541454, array index can't be 0 in `element_at`/`try_element_at` and we should throw an error to remind users. ### Does this PR introduce _any_ user-facing change? No, the new function is not released yet. ### How was this patch tested? Unit tests Closes apache#34833 from gengliangwang/try_element_at_followup. Authored-by: Gengliang Wang <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]>
- Loading branch information
1 parent
1fac7a9
commit cf19cf5
Showing
4 changed files
with
49 additions
and
45 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
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