Github user viirya commented on a diff in the pull request: https://github.com/apache/spark/pull/19436#discussion_r142850005 --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/objects.scala --- @@ -394,7 +394,11 @@ case class FlatMapGroupsInRExec( override def producedAttributes: AttributeSet = AttributeSet(outputObjAttr) override def requiredChildDistribution: Seq[Distribution] = - ClusteredDistribution(groupingAttributes) :: Nil + if (groupingAttributes.isEmpty) { + AllTuples :: Nil --- End diff -- You mean empty grouping attributes == all tuples? Yeah, I think no grouping attributes means all tuples are in the one group.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org