-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20569][SQL] RuntimeReplaceable functions should not take extra parameters #17876
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
|
Test build #76501 has finished for PR 17876 at commit
|
|
Test build #76570 has finished for PR 17876 at commit
|
|
Test build #76587 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76599 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76609 has finished for PR 17876 at commit
|
|
Test build #76616 has finished for PR 17876 at commit
|
|
retest this please |
|
Test build #76654 has finished for PR 17876 at commit
|
| val maxNumArgs = all.map(_.getParameterCount).max | ||
| all.filterNot(_.getParameterCount == maxNumArgs) | ||
| } else { | ||
| tag.runtimeClass.getConstructors |
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.
What is the reason why we originally called getDeclaredConstructor instead of getConstructor?
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.
getDeclaredConstructor will find a specific constructor matching the given parameter types. Now I have some special logic about choosing the constructor, so I call getConstructors to get all the constructors.
|
LGTM |
… parameters ## What changes were proposed in this pull request? `RuntimeReplaceable` always has a constructor with the expression to replace with, and this constructor should not be the function builder. ## How was this patch tested? new regression test Author: Wenchen Fan <[email protected]> Closes #17876 from cloud-fan/minor. (cherry picked from commit b4c99f4) Signed-off-by: Xiao Li <[email protected]>
|
Thanks! Merging to master/2.2 |
… parameters ## What changes were proposed in this pull request? `RuntimeReplaceable` always has a constructor with the expression to replace with, and this constructor should not be the function builder. ## How was this patch tested? new regression test Author: Wenchen Fan <[email protected]> Closes apache#17876 from cloud-fan/minor.
What changes were proposed in this pull request?
RuntimeReplaceablealways has a constructor with the expression to replace with, and this constructor should not be the function builder.How was this patch tested?
new regression test