cloud-fan commented on code in PR #44614:
URL: https://github.com/apache/spark/pull/44614#discussion_r1443102380
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/AliasAwareOutputExpression.scala:
##########
@@ -30,7 +30,7 @@ trait PartitioningPreservingUnaryExecNode extends
UnaryExecNode
with AliasAwareOutputExpression {
final override def outputPartitioning: Partitioning = {
val partitionings: Seq[Partitioning] = if (hasAlias) {
- flattenPartitioning(child.outputPartitioning).flatMap {
+ flattenPartitioning(child.outputPartitioning).iterator.flatMap {
Review Comment:
We apply the threshold when expanding each partitioning inside
`PartitioningCollection`. But if there are many partitionings, we don't limit
anything and may produce a lot of partitionings.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]