Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented May 1, 2021

What changes were proposed in this pull request?

This patch fixes Invoke expression when the target object has more than one method with the given method name. This is 2.4 backport of #32404.

Why are the changes needed?

Invoke will find out the method on the target object with given method name. If there are more than one method with the name, currently it is undeterministic which method will be used. We should add the condition of parameter number when finding the method.

Does this PR introduce any user-facing change?

Yes, fixed a bug when using Invoke on a object where more than one method with the given method name.

How was this patch tested?

Unit test.

@viirya
Copy link
Member Author

viirya commented May 1, 2021

cc @dongjoon-hyun @cloud-fan @maropu

@SparkQA
Copy link

SparkQA commented May 1, 2021

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42654/

@SparkQA
Copy link

SparkQA commented May 1, 2021

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/42654/

@SparkQA
Copy link

SparkQA commented May 1, 2021

Test build #138133 has finished for PR 32412 at commit 84e0f17.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@viirya
Copy link
Member Author

viirya commented May 1, 2021

Thanks @maropu! Merging to 2.4.

viirya added a commit that referenced this pull request May 1, 2021
…mber of parameters

### What changes were proposed in this pull request?

This patch fixes `Invoke` expression when the target object has more than one method with the given method name. This is 2.4 backport of #32404.

### Why are the changes needed?

`Invoke` will find out the method on the target object with given method name. If there are more than one method with the name, currently it is undeterministic which method will be used. We should add the condition of parameter number when finding the method.

### Does this PR introduce _any_ user-facing change?

Yes, fixed a bug when using `Invoke` on a object where more than one method with the given method name.

### How was this patch tested?

Unit test.

Closes #32412 from viirya/SPARK-35278-2.4.

Authored-by: Liang-Chi Hsieh <[email protected]>
Signed-off-by: Liang-Chi Hsieh <[email protected]>
@viirya viirya closed this May 1, 2021
@viirya viirya deleted the SPARK-35278-2.4 branch May 1, 2021 21:59
@dongjoon-hyun
Copy link
Member

+1, late LGTM. Thank you all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants