Pajaraja commented on code in PR #51134: URL: https://github.com/apache/spark/pull/51134#discussion_r2137946796
########## sql/core/src/main/scala/org/apache/spark/sql/execution/UnionLoopExec.scala: ########## @@ -135,7 +135,7 @@ case class UnionLoopExec( // reference any external tables, we are able to calculate everything in the optimizer, // using the ConvertToLocalRelation rule, which significantly improves runtime. if (count <= localRelationLimit) { - val local = LocalRelation.fromExternalRows(anchor.output, df.collect().toIndexedSeq) + val local = LocalRelation.fromExternalRows(output, df.collect().toIndexedSeq) Review Comment: Changed! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org