-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-6428] Added explicit types for all public methods in core. #5125
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 #28957 has started for PR 5125 at commit
|
|
Test build #28957 timed out for PR 5125 at commit |
|
Test FAILed. |
|
Jenkins, retest this please. |
|
Test build #28968 has started for PR 5125 at commit
|
|
Test build #28968 has finished for PR 5125 at commit
|
|
Test FAILed. |
|
Jenkins, retest this please. |
|
Test build #28969 has started for PR 5125 at commit
|
|
Test build #28969 has finished for PR 5125 at commit
|
|
Test FAILed. |
|
Test build #28977 has started for PR 5125 at commit
|
|
Test build #28977 has finished for PR 5125 at commit
|
|
Test PASSed. |
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.
shouldn't the return type here by RDD[T], since EmptyRDD is private[spark] and just an implementation detail?
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.
it should - except then it broke binary compatibility :(
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.
BTW functions are like this are why we should always declare types explicitly.
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.
This is written up a bit more in https://issues.apache.org/jira/browse/SPARK-2331 which should be reopened for the new "2+" bucket in JIRA. This should be fixed when binary compatibility can be broken. Yes, big +1 to tightening up types like this.
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.
ah right, thanks for clarifying.
its really a shame that the scala compiler didn't warn in the first place that this method led to EmptyRDD was escaping its declared scope.
|
LGTM overall. |
7243c27 to
81b66e4
Compare
|
Test build #29053 has started for PR 5125 at commit
|
|
Test build #29053 has finished for PR 5125 at commit
|
|
Test FAILed. |
|
Test build #29054 has started for PR 5125 at commit
|
|
Test build #29054 has finished for PR 5125 at commit
|
|
Test PASSed. |
No description provided.