-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-25141][SQL][TEST] Modify tests for higher-order functions to check bind method. #22131
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
|
I am not sure about this. I think that the |
|
Actually one of my motivations is to prevent a mistake like #22126. To create a test, we needed to do the same thing in |
|
I see now, thanks. The only thing which I am a bit concerned about is the complexity introduced by this change, in the sense that it is relying very much on the Can we add a generic function similar to the |
|
sorry, I wasn't very specific in my previous comment. I meant adding a method like: and then validate all the expressions, so use it like: What do you think about this? |
|
Test build #94883 has finished for PR 22131 at commit
|
|
Sounds good. I just hope we will never miss to wrap new functions with it. Thanks! |
|
yes, this is my worry too... But I don't have any suggestion for that.... If you have anyone, that's great :) |
|
LGTM |
|
LGTM too |
|
Test build #94887 has finished for PR 22131 at commit
|
|
Test build #94888 has finished for PR 22131 at commit
|
|
Test build #94891 has finished for PR 22131 at commit
|
|
Test build #94919 has finished for PR 22131 at commit
|
|
I preferred the previous one (but yes, definitely good to add the check about the args size), but I am fine with this one too. Thanks @ueshin |
|
Thanks! I'd use this one. merging to master. |
What changes were proposed in this pull request?
We should also check
HigherOrderFunction.bindmethod passes expected parameters.This pr modifies tests for higher-order functions to check
bindmethod.How was this patch tested?
Modified tests.