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

Xiao Li resolved SPARK-19435.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.2.0

> Type coercion between ArrayTypes
> --------------------------------
>
>                 Key: SPARK-19435
>                 URL: https://issues.apache.org/jira/browse/SPARK-19435
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>             Fix For: 2.2.0
>
>
> It seems currently we don't allow type coercion between arrays. We now 
> implicitly cast it in SPARK-18624
> So, the below codes are not working now.
> {code}
> Seq(Array(1)).toDF("a").selectExpr("greatest(a, array(1D))")
> Seq(Array(1)).toDF("a").selectExpr("least(a, array(1D))")
> sql("SELECT * FROM values (array(0)), (array(1D)) as data(a)")
> Seq(Array(1)).toDF("a").union(Seq(Array(1D)).toDF("b"))
> sql("SELECT IF(1=1, array(1), array(1D))")
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to