Uh oh!
There was an error while loading. Please reload this page.
[SPARK-14042][CORE] Add custom coalescer support - #11865
Conversation
There was a problem hiding this comment.
Since HadoopPartition is not public a user who wants to implement this outside of Spark can have some trouble.
nezihyigitbasi
commented
Mar 31, 2016
@rxin any comments? |
hbhanawat
commented
Apr 4, 2016
@nezihyigitbasi, do you plan to add something similar for DF/DS API? |
nezihyigitbasi
commented
Apr 4, 2016
@hbhanawat once we figure out the details I think it makes sense to do that. |
nezihyigitbasi
commented
Apr 18, 2016
@rxin any plans to review this? |
rxin
commented
Apr 18, 2016
The API change looks alright. I'd separate the dataset changes from this one. Are there other things you want to do before this is not WIP? |
nezihyigitbasi
commented
Apr 18, 2016
If the API changes look OK to you, then I don't have anything else before this is not WIP. I only need to resolve conflicts with the master. |
adc12e6 to
016a896Comparenezihyigitbasi
commented
Apr 18, 2016
@rxin rebased & addressed comments. |
There was a problem hiding this comment.
this should have parentheses since it has side effect
rxin
commented
Apr 18, 2016
Also can you tag all these apis as DeveloperApi? Thanks.' |
016a896 to
9afeaa0CompareThere was a problem hiding this comment.
I followed the naming convention for other classes, let me know if you still want lower-case.
There was a problem hiding this comment.
Yea actually many of the naming in spark core is wrong but we never bothered changing them. Usually SomeWord.scala means there is a class named SomeWord. The scala style guide actually recommends when there are multiple classes that are part of a coherent group, start with lowercase (similar to a lot of c++ naming guides).
9afeaa0 to
c61ab42Comparenezihyigitbasi
commented
Apr 18, 2016
@rxin thanks for the comments. Updated. |
There was a problem hiding this comment.
We would need to add the label here. something like ::DeveloperApi. look up other classes to confirm.
rxin
commented
Apr 18, 2016
LGTM other than that couple minor feedback. |
c61ab42 to
9d91f77Comparenezihyigitbasi
commented
Apr 19, 2016
@rxin thanks, comments addressed. Renamed that file to use lower-case too. |
rxin
commented
Apr 19, 2016
Thanks - let's wait for Jenkins. Can you update the title / description of the pull request? |
SparkQA
commented
Apr 19, 2016
Test build #2818 has finished for PR 11865 at commit
|
nezihyigitbasi
commented
Apr 19, 2016
Mima tests failing, I guess we can exclude them all. What do you think? [info] spark-core: found 3 potential binary incompatibilities while checking against org.apache.spark:spark-core_2.11:1.6.0 (filtered 1299)
[error] * method coalesce(Int,Boolean,scala.math.Ordering)org.apache.spark.rdd.RDD in classorg.apache.spark.rdd.RDD does not have a correspondent in current version
[error] filter with:ProblemFilters.exclude[DirectMissingMethodProblem]("org.apache.spark.rdd.RDD.coalesce")
[error] *classorg.apache.spark.rdd.PartitionCoalescer#LocationIterator does not have a correspondent in current version
[error] filter with:ProblemFilters.exclude[MissingClassProblem]("org.apache.spark.rdd.PartitionCoalescer$LocationIterator")
[error] * declaration of classorg.apache.spark.rdd.PartitionCoalescer is interface org.apache.spark.rdd.PartitionCoalescer in current version; changing classto interface breaks client code
[error] filter with:ProblemFilters.exclude[IncompatibleTemplateDefProblem]("org.apache.spark.rdd.PartitionCoalescer") |
rxin
commented
Apr 19, 2016
Yup go for it. |
9d91f77 to
5a12586Comparenezihyigitbasi
commented
Apr 19, 2016
@rxin somehow jenkins didn't start the tests after my last push, can you please kick it off? |
SparkQA
commented
Apr 19, 2016
Test build #2829 has finished for PR 11865 at commit
|
nezihyigitbasi
commented
Apr 19, 2016
@rxin tests look OK, do you have any other comments? |
rxin
commented
Apr 19, 2016
Merging in master. Thanks. |
What changes were proposed in this pull request?
This PR adds support for specifying an optional custom coalescer to the
coalesce()method. Currently I have only added this feature to theRDDinterface, and once we sort out the details we can proceed with adding this feature to the other APIs (Datasetetc.)How was this patch tested?
Added a unit test for this functionality.
/cc @rxin (per our discussion on the mailing list)