Description
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.
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))")
Attachments
Issue Links
- is related to
-
SPARK-19536 Improve capability to merge SQL data types
- Resolved
- links to