-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-7399][Spark Core]Fixed compilation error in scala 2.11 #5966
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
[SPARK-7399][Spark Core]Fixed compilation error in scala 2.11 #5966
Conversation
|
Can one of the admins verify this patch? |
|
ok to test |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32093 has started for PR 5966 at commit |
|
Verified that the patch fixes the compilation problem. A few comments:
|
|
Test build #32093 has finished for PR 5966 at commit
|
|
Merged build finished. Test FAILed. |
|
Test FAILed. |
|
@andrewor14 FYI |
|
retest this please |
|
This is a surprise since the two methods have different number of non-default arguments. Thanks for fixing this @tijoparacka. We need to keep the second method for later. |
|
Merged build triggered. |
|
Merged build started. |
|
Test build #32119 has started for PR 5966 at commit |
|
LGTM |
|
Test build #32119 has finished for PR 5966 at commit
|
|
Merged build finished. Test PASSed. |
|
Test PASSed. |
|
Merging into master 1.4 |
scala has deterministic naming-scheme for the generated methods which return default arguments . here one of the default argument of overloaded method has to be removed Author: Tijo Thomas <[email protected]> Closes #5966 from tijoparacka/fix_compilation_error_in_scala2.11 and squashes the following commits: c90bba8 [Tijo Thomas] Fixed compilation error in scala 2.11 (cherry picked from commit 0c33bf8) Signed-off-by: Andrew Or <[email protected]>
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.
I reverted the whitespace change here
|
@andrewor14 I don't see this commit in master (i.e., it still fails on 2.11). What is the policy w.r.t. to master vs. the 1.4 branch? |
|
Ah, looks like this might have gotten inadvertently reverted when merging bd61f07 ? |
|
I would say good catch! |
|
Ugh, my mistake. I will merge this now. |
|
Honestly I don't understand why scala 2.11 can't compile this when 2.10 can. The number of non-default arguments here is not at all ambiguous. Anyway I'm looking into this ATM. |
|
By the way I suspect this is also an issue in branch-1.4 because that patch was also merged there. |
|
Scala is too conservative, indeed it could compile this, but it decided to forbid overloads + default arguments altogether because of the way they are encoded (and potential conflicts). Indeed, the same problem is present in brach-1.4 |
Subsequent fix following #5966. I tried this out locally. Author: Andrew Or <[email protected]> Closes #6129 from andrewor14/211-compilation and squashes the following commits: 713868f [Andrew Or] Fix compilation issue for scala 2.11
Subsequent fix following #5966. I tried this out locally. Author: Andrew Or <[email protected]> Closes #6129 from andrewor14/211-compilation and squashes the following commits: 713868f [Andrew Or] Fix compilation issue for scala 2.11 (cherry picked from commit f88ac70) Signed-off-by: Andrew Or <[email protected]>
scala has deterministic naming-scheme for the generated methods which return default arguments . here one of the default argument of overloaded method has to be removed Author: Tijo Thomas <[email protected]> Closes apache#5966 from tijoparacka/fix_compilation_error_in_scala2.11 and squashes the following commits: c90bba8 [Tijo Thomas] Fixed compilation error in scala 2.11
Subsequent fix following apache#5966. I tried this out locally. Author: Andrew Or <[email protected]> Closes apache#6129 from andrewor14/211-compilation and squashes the following commits: 713868f [Andrew Or] Fix compilation issue for scala 2.11
scala has deterministic naming-scheme for the generated methods which return default arguments . here one of the default argument of overloaded method has to be removed Author: Tijo Thomas <[email protected]> Closes apache#5966 from tijoparacka/fix_compilation_error_in_scala2.11 and squashes the following commits: c90bba8 [Tijo Thomas] Fixed compilation error in scala 2.11
Subsequent fix following apache#5966. I tried this out locally. Author: Andrew Or <[email protected]> Closes apache#6129 from andrewor14/211-compilation and squashes the following commits: 713868f [Andrew Or] Fix compilation issue for scala 2.11
scala has deterministic naming-scheme for the generated methods which return default arguments . here one of the default argument of overloaded method has to be removed Author: Tijo Thomas <[email protected]> Closes apache#5966 from tijoparacka/fix_compilation_error_in_scala2.11 and squashes the following commits: c90bba8 [Tijo Thomas] Fixed compilation error in scala 2.11
Subsequent fix following apache#5966. I tried this out locally. Author: Andrew Or <[email protected]> Closes apache#6129 from andrewor14/211-compilation and squashes the following commits: 713868f [Andrew Or] Fix compilation issue for scala 2.11
scala has deterministic naming-scheme for the generated methods which return default arguments . here one of the default argument of overloaded method has to be removed