Github user sadhen commented on the issue: https://github.com/apache/spark/pull/22264 ``` Welcome to ____ __ / __/__ ___ _____/ /__ _\ \/ _ \/ _ `/ __/ '_/ /___/ .__/\_,_/_/ /_/\_\ version 2.4.0-SNAPSHOT /_/ Using Scala version 2.12.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_112) Type in expressions to have them evaluated. Type :help for more information. scala> val rowOfDoubleWrappedArray = spark.sql("select array(cast (1.0 as double) , cast(1.0 as double))").collect.head rowOfDoubleWrappedArray: org.apache.spark.sql.Row = [WrappedArray(1.0, 1.0)] scala> val rowOfIntWrappedArray = spark.sql("select array(1, 1)").collect.head rowOfIntWrappedArray: org.apache.spark.sql.Row = [WrappedArray(1, 1)] scala> rowOfDoubleWrappedArray == rowOfIntWrappedArray res5: Boolean = false ``` And for Scala 2.11, the result is true.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org