cloud-fan commented on PR #42099:
URL: https://github.com/apache/spark/pull/42099#issuecomment-1649026633

   I think the problem is
   ```
       if (partitions.length == 1) {
         SinglePartition
       }
   ```
   
   For `SinglePartition`, the perf doesn't matter as the data is small and we 
only use one task to process it. It doesn't worth the cost of triggering the 
partition listing during planning. We should just remove this if branch.


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

Reply via email to