f29c2b5287
## What changes were proposed in this pull request? ### For `SPARK-5775 read array from partitioned_parquet_with_key_and_complextypes`: scala2.12 ``` scala> (1 to 10).toString res4: String = Range 1 to 10 ``` scala2.11 ``` scala> (1 to 10).toString res2: String = Range(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) ``` And ``` def prepareAnswer(answer: Seq[Row], isSorted: Boolean): Seq[Row] = { val converted: Seq[Row] = answer.map(prepareRow) if (!isSorted) converted.sortBy(_.toString()) else converted } ``` sortBy `_.toString` is not a good idea. ### Other failures are caused by ``` Array(Int.box(1)).toSeq == Array(Double.box(1.0)).toSeq ``` It is false in 2.12.2 + and is true in 2.11.x , 2.12.0, 2.12.1 ## How was this patch tested? This is a patch on a specific unit test. Closes #22264 from sadhen/SPARK25256. Authored-by: 忍冬 <rendong@wacai.com> Signed-off-by: Sean Owen <sean.owen@databricks.com> |
||
---|---|---|
.. | ||
compatibility/src/test/scala/org/apache/spark/sql/hive/execution | ||
src | ||
pom.xml |