-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-24350][SQL] Fixes ClassCastException in the "array_position" function #21401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| intercept[AnalysisException] { | ||
| Seq(("a string element", "a")).toDF().selectExpr("array_position(_1, _2)") | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the error message, too.
|
Please describe more in the description; you'd be better to copy the description there. |
|
@ueshin can you trigger tests? |
|
ok to test. |
|
Test build #90990 has finished for PR 21401 at commit
|
|
retest this please |
1 similar comment
|
retest this please |
|
From PR description, |
|
Test build #91005 has finished for PR 21401 at commit
|
|
retest this please |
|
good catch, thanks |
|
Test build #91015 has finished for PR 21401 at commit
|
|
Jenkins, retest this please. |
|
LGTM pending Jenkins. |
|
LGTM |
|
Test build #91020 has finished for PR 21401 at commit
|
|
retest this please |
|
Test build #91045 has finished for PR 21401 at commit
|
|
retest this please |
|
LGTM |
|
Test build #91058 has finished for PR 21401 at commit
|
gatorsmile
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! Merged to master.
What changes were proposed in this pull request?
Fixes
ClassCastExceptionin thearray_positionfunction - SPARK-24350When calling
array_positionfunction with a wrong type of the 1st argument anAnalysisExceptionshould be thrown instead ofClassCastExceptionExample:
How was this patch tested?
unit test