Github user koertkuipers commented on the issue: https://github.com/apache/spark/pull/13526 ``` scala> val x = Seq(("a", 1), ("b", 2)).toDS x: org.apache.spark.sql.Dataset[(String, Int)] = [_1: string, _2: int] scala> x.groupByKey(_._1).mapValues(_._2).reduceGroups(_ + _).explain == Physical Plan == *SerializeFromObject [staticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, fromString, input[0, scala.Tuple2, true]._1, true) AS value#36, input[0, scala.Tuple2, true]._2 AS value#37] +- MapGroups <function2>, value#32.toString, value#34: int, [value#32], [value#34], obj#35: scala.Tuple2 +- *Sort [value#32 ASC], false, 0 +- Exchange hashpartitioning(value#32, 200) +- *Project [value#34, value#32] +- AppendColumns <function1>, newInstance(class scala.Tuple2), [input[0, int, true] AS value#34] +- AppendColumns <function1>, newInstance(class scala.Tuple2), [staticinvoke(class org.apache.spark.unsafe.types.UTF8String, StringType, fromString, input[0, java.lang.String, true], true) AS value#32] +- LocalTableScan [_1#28, _2#29] ``` it seems to AppendColumns are not collapsed
--- 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