Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/15045#discussion_r78297901
--- Diff: core/src/main/scala/org/apache/spark/rdd/PairRDDFunctions.scala
---
@@ -530,7 +530,7 @@ class PairRDDFunctions[K, V](self: RDD[(K, V)])
*/
def partitionBy(partitioner: Partitioner): RDD[(K, V)] = self.withScope {
if (keyClass.isArray && partitioner.isInstanceOf[HashPartitioner]) {
- throw new SparkException("Default partitioner cannot partition array
keys.")
+ throw new SparkException("Specified partitioner cannot partition
array keys.")
--- End diff --
Even this method is called by other Spark code with HashPartitioner, which
might lead to this error telling the user the "specified" partitioner doesn't
work when the user code didn't specify a partitioner.
---
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]