Copilot commented on code in PR #13171:
URL: https://github.com/apache/gluten/pull/13171#discussion_r4598567316


##########
shims/spark42/src/main/scala/org/apache/gluten/sql/shims/spark42/Spark42Shims.scala:
##########
@@ -60,6 +60,21 @@ class Spark42Shims extends SparkShims {
   override def isKeyGroupedPartitioning(partitioning: Partitioning): Boolean =
     partitioning.isInstanceOf[KeyedPartitioning]
 
+  override def getKeyGroupedShuffleInfo(
+      partitioning: Partitioning): Option[KeyGroupedShuffleInfo] = {
+    partitioning match {
+      case p: KeyedPartitioning =>
+        val grouped = p.toGrouped
+        val partitionValues = grouped.partitionKeys.map(_.row)
+        if (partitionValues.isEmpty) {
+          None
+        } else {
+          Some(KeyGroupedShuffleInfo(grouped, grouped.expressions, 
partitionValues))

Review Comment:
   The enabled Spark 4.2 `GLUTEN-10992` regression still requires a vanilla 
keyed exchange and no columnar keyed exchange, so enabling this Velox path 
makes it fail 
(`gluten-ut/spark42/src/test/scala/org/apache/spark/sql/connector/GlutenKeyGroupedPartitioningSuite.scala:1136–1149`).
 Update the assertions to expect columnar exchanges on Velox while retaining 
vanilla expectations for unsupported backends, as in the 4.0/4.1 suites. The 
same stale expectations occur at lines 2030–2034 in that suite's currently 
excluded checkpoint test.



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