Skip to content

Conversation

@zsxwing
Copy link
Member

@zsxwing zsxwing commented Jun 15, 2015

This PR fixes the sum issue and also adds emptyRDD so that it's easy to create a test case.

@SparkQA
Copy link

SparkQA commented Jun 15, 2015

Test build #34927 has finished for PR 6826 at commit 71df047.

  • This patch fails MiMa tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@zsxwing
Copy link
Member Author

zsxwing commented Jun 15, 2015

retest this please

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emptyRDD[T] should produce an RDD of T, not byte arrays right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T in the return type is not used. Actually, it can be an arbitrary type.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will update it to T

@SparkQA
Copy link

SparkQA commented Jun 15, 2015

Test build #34935 has finished for PR 6826 at commit 71df047.

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

@zsxwing
Copy link
Member Author

zsxwing commented Jun 15, 2015

/cc @davies

@davies
Copy link
Contributor

davies commented Jun 15, 2015

LGTM

@SparkQA
Copy link

SparkQA commented Jun 15, 2015

Test build #34937 has finished for PR 6826 at commit b36993f.

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this API used anywhere? If the answer is "no", we should remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is just bringing it to parity with the scala SparkContext API, which we currently also only use in tests. This is probably fine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is PythonRDD, is not JavaSparkContext.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davies right. I just sent #6867 to remove it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see

asfgit pushed a commit that referenced this pull request Jun 17, 2015
… calling sum on an empty RDD

This PR fixes the sum issue and also adds `emptyRDD` so that it's easy to create a test case.

Author: zsxwing <[email protected]>

Closes #6826 from zsxwing/python-emptyRDD and squashes the following commits:

b36993f [zsxwing] Update the return type to JavaRDD[T]
71df047 [zsxwing] Add emptyRDD to pyspark and fix the issue when calling sum on an empty RDD

(cherry picked from commit 0fc4b96)
Signed-off-by: Andrew Or <[email protected]>
@asfgit asfgit closed this in 0fc4b96 Jun 17, 2015
@zsxwing zsxwing deleted the python-emptyRDD branch June 18, 2015 02:29
asfgit pushed a commit that referenced this pull request Jun 18, 2015
This is a follow-up PR to remove unused `PythonRDD.emptyRDD` added by #6826

Author: zsxwing <[email protected]>

Closes #6867 from zsxwing/remove-PythonRDD-emptyRDD and squashes the following commits:

b66d363 [zsxwing] Remove PythonRDD.emptyRDD
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
… calling sum on an empty RDD

This PR fixes the sum issue and also adds `emptyRDD` so that it's easy to create a test case.

Author: zsxwing <[email protected]>

Closes apache#6826 from zsxwing/python-emptyRDD and squashes the following commits:

b36993f [zsxwing] Update the return type to JavaRDD[T]
71df047 [zsxwing] Add emptyRDD to pyspark and fix the issue when calling sum on an empty RDD
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
This is a follow-up PR to remove unused `PythonRDD.emptyRDD` added by apache#6826

Author: zsxwing <[email protected]>

Closes apache#6867 from zsxwing/remove-PythonRDD-emptyRDD and squashes the following commits:

b66d363 [zsxwing] Remove PythonRDD.emptyRDD
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.

5 participants