-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-3485][SQL] should check parameter type when look for constructors #2355
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
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
failure is in streaming. |
|
retest this please. |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
The last failure was |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
fa68a11 to
78b4c03
Compare
|
Have my code rebased, should be able to merge cleanly! |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
I have changed the way to fix the problem here, keeping most of the original logics. @marmbrus |
|
retest this please. |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
Sorry for the missings here... |
0142696 to
5f25ca5
Compare
|
@chenghao-intel This is not so complex since it is not GenericUDF, but simple UDF with limited types. So we do not need to call those here. |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
retest this please. |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
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.
(a: Any) => wrap(a) should be enough here.
|
Hi @liancheng I have created another PR(PR #2407 ) on this issue, offering another solution. Please let me know which solution do you guys prefer here. |
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
QA tests have started for PR 2355 at commit
|
|
QA tests have finished for PR 2355 at commit
|
|
maybe 2407 is better, I'll close this. |
… type conversions This is just another solution to SPARK-3485, in addition to PR #2355 In this patch, we will use ConventionHelper and FunctionRegistry to invoke a simple udf evaluation, which rely more on hive, but much cleaner and safer. We can discuss which one is better. Author: Daoyuan Wang <daoyuan.wang@intel.com> Closes #2407 from adrian-wang/simpleudf and squashes the following commits: 15762d2 [Daoyuan Wang] add posmod test which would fail the test but now ok 0d69eb4 [Daoyuan Wang] another way to pass to hive simple udf
In hiveUdfs, we get constructors of primitivetypes by find a constructor which takes only one parameter. This is very dangerous when more than one constructors match. When the sequence of primitiveTypes becomes larger, the problem would occur, causing a exception as
java.lang.IllegalArgumentException: argument type mismatch