peter-toth commented on code in PR #52628:
URL: https://github.com/apache/spark/pull/52628#discussion_r2435570097


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanPartitioningAndOrdering.scala:
##########
@@ -64,11 +64,29 @@ object V2ScanPartitioningAndOrdering extends 
Rule[LogicalPlan] with Logging {
           None
       }
 
-      d.copy(keyGroupedPartitioning = catalystPartitioning)
+      val catalystKeyedPartitioning = scan.outputPartitioning() match {

Review Comment:
   Since `scan.outputPartitioning()` is either `KeyGroupedPartitioning` or 
`KeyedPartitioning` can we merge the `catalystPartitioning` and 
`catalystKeyedPartitioning` computing matches into one?



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