Github user zsxwing commented on a diff in the pull request:
https://github.com/apache/spark/pull/3505#discussion_r22774069
--- Diff: core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
---
@@ -487,6 +487,196 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
}
/**
+ * ::Experimental::
+ * Return an RDD containing all pairs of elements with matching keys in
`this` and `other`. Each
+ * pair of elements will be returned as a (k, (v1, v2)) tuple, where (k,
v1) is in `this` and
+ * (k, v2) is in `other`. Performs a hash join across the cluster.
+ *
+ * It supports to join skewed data. If values of some key cannot be fit
into memory, it will spill
+ * them to disk.
+ */
+ @Experimental
+ def skewedJoin[W: ClassTag](other: RDD[(K, W)]): RDD[(K, (V, W))] = {
--- End diff --
See the discuss above. I added `spark.join.skew=true` at first but removed
it as per @rxin and @sryza 's suggestion.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]