Github user cloud-fan commented on a diff in the pull request: https://github.com/apache/spark/pull/11623#discussion_r58635476 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala --- @@ -176,4 +186,13 @@ class DatasetAggregatorSuite extends QueryTest with SharedSQLContext { typed.avg(_._2), typed.count(_._2), typed.sum(_._2), typed.sumLong(_._2)), ("a", 2.0, 2L, 4.0, 4L), ("b", 3.0, 1L, 3.0, 3L)) } + + test("SPARK-12555 - result should not be corrupted after input columns are reordered") { + val ds = sql("SELECT 1279869254 AS a, 'Some String' AS b").as[AggData] --- End diff -- the scenario in the JIRA is ``` case class people(age: Int, name: String) sqlContext.sql("SELECT 'Tim Preece' AS name, 1279869254 AS age").as[people] ``` I think input column reorder is important to trigger this bug, could you try your test case at branch 1.6 and see if it reproduce? thanks
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org