You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "ulysses-you (via GitHub)" <gi...@apache.org> on 2026/09/07 06:36:57 UTC
Re: [PR] [SPARK-58996][SQL][4.2] Fix SPJ partially clustered data correctness when EnsureRequirements re-runs [spark]
ulysses-you commented on code in PR #58561:
URL: https://github.com/apache/spark/pull/58561#discussion_r3947134144
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/physical/partitioning.scala:
##########
@@ -789,6 +789,28 @@ case class PartitioningCollection(partitionings: Seq[Partitioning])
super.legacyWithNewChildren(newChildren).asInstanceOf[PartitioningCollection]
}
+object PartitioningCollection {
+ /**
+ * One [[KeyedPartitioning]] standing for every one in this partitioning, if there is any. By the
+ * invariant in the class doc, any of them describes the layout.
+ */
+ private[physical] def representativeOf(p: Partitioning): Option[KeyedPartitioning] = p match {
Review Comment:
this is an additionally introducing for branch-4.2
--
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org