pan3793 commented on code in PR #54182:
URL: https://github.com/apache/spark/pull/54182#discussion_r2775534617


##########
sql/core/src/test/scala/org/apache/spark/sql/connector/KeyGroupedPartitioningSuite.scala:
##########
@@ -2841,4 +2841,39 @@ class KeyGroupedPartitioningSuite extends 
DistributionAndOrderingSuiteBase {
     }
     assert(metrics("number of rows read") == "3")
   }
+
+  test("bug") {

Review Comment:
   ONLY copy this test case to the master codebase, and run
   ```
   $ build/sbt "sql/testOnly *KeyGroupedPartitioningSuite -- -z bug"
   ...
   [info] - bug *** FAILED *** (1 second, 884 milliseconds)
   [info]   java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for 
length 1
   [info]   at 
scala.collection.immutable.ArraySeq$ofRef.apply(ArraySeq.scala:331)
   [info]   at 
org.apache.spark.sql.catalyst.plans.physical.KeyGroupedPartitioning$.$anonfun$project$1(partitioning.scala:471)
   [info]   at 
org.apache.spark.sql.catalyst.plans.physical.KeyGroupedPartitioning$.$anonfun$project$1$adapted(partitioning.scala:471)
   [info]   at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:75)
   [info]   at scala.collection.immutable.ArraySeq.map(ArraySeq.scala:35)
   [info]   at 
org.apache.spark.sql.catalyst.plans.physical.KeyGroupedPartitioning$.project(partitioning.scala:471)
   [info]   at 
org.apache.spark.sql.execution.KeyGroupedPartitionedScan.$anonfun$getOutputKeyGroupedPartitioning$5(KeyGroupedPartitionedScan.scala:58)
   ...
   ```



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