dbaliafroozeh commented on a change in pull request #32030:
URL: https://github.com/apache/spark/pull/32030#discussion_r608801196



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/DeduplicateRelations.scala
##########
@@ -95,9 +95,9 @@ object DeduplicateRelations extends Rule[LogicalPlan] {
               .flatMap(_.output).zip(newChildren.flatMap(_.output))
               .filter { case (a1, a2) => a1.exprId != a2.exprId }
           )
-          plan.withNewChildren(newChildren.toSeq).rewriteAttrs(attrMap)
+          plan.withNewChildren(newChildren.toList).rewriteAttrs(attrMap)

Review comment:
       Note to reviewers: this change is necessary to prevent tpc-ds plan 
stability tests to pass. It was complaining that a list of children is an 
`ArrayBuffer` instead of a `List`. The reason for the difference is that the 
new `withNewChildren` just replaces the children with the given new children 
and doesn't care about the exact list type.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to