[ 
https://issues.apache.org/jira/browse/SPARK-24714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Takeshi Yamamuro resolved SPARK-24714.
--------------------------------------
    Resolution: Won't Fix

> AnalysisSuite should use ClassTag to check the runtime instance
> ---------------------------------------------------------------
>
>                 Key: SPARK-24714
>                 URL: https://issues.apache.org/jira/browse/SPARK-24714
>             Project: Spark
>          Issue Type: Test
>          Components: SQL
>    Affects Versions: 2.3.1
>            Reporter: Chia-Ping Tsai
>            Priority: Minor
>
> {code:java}
> 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
> }{code}
> Spark support the scala 2.10 and 2.11 so it is ok to introduce ClassTag to 
> correct the type check.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to