Details
-
Test
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
2.3.1
-
None
-
None
Description
test("SPARK-22614 RepartitionByExpression partitioning") { def checkPartitioning[T <: Partitioning](numPartitions: Int, exprs: Expression*): Unit = { val partitioning = RepartitionByExpression(exprs, testRelation2, numPartitions).partitioning assert(partitioning.isInstanceOf[T]) // it always be true because of type erasure }
Spark support the scala 2.10 and 2.11 so it is ok to introduce ClassTag to correct the type check.