-
Notifications
You must be signed in to change notification settings - Fork 29k
[MINOR][CORE] Add test cases for RDD.cartesian #21765
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 #4213 has finished for PR 21765 at commit
|
|
Test build #4215 has finished for PR 21765 at commit
|
|
Test build #4216 has finished for PR 21765 at commit
|
The scala code for RDD.cartesian does not have any tests for correctness. This adds a couple basic tests to verify cartesian yields correct values. Passes the added test cases, and passes the scala style tests. Author: Nihar Sheth <niharrsheth@gmail.com>
|
Rebased onto SPARK-24813 so hopefully tests will work now |
|
Yup it will always apply your PR to master anyway, so would have picked it up in this test run. |
|
Test build #4217 has finished for PR 21765 at commit
|
|
Test build #4218 has finished for PR 21765 at commit
|
jiangxb1987
left a comment
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.
LGTM
|
Merged to master |
What changes were proposed in this pull request?
While looking through the codebase, it appeared that the scala code for RDD.cartesian does not have any tests for correctness. This adds a couple basic tests to verify cartesian yields correct values. While the implementation for RDD.cartesian is pretty simple, it always helps to have a few tests!
How was this patch tested?
The new test cases pass, and the scala style tests from running dev/run-tests all pass.
Please review http://spark.apache.org/contributing.html before opening a pull request.