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


##########
.github/workflows/util/delta-spark-ut/patches/data-skipping-stats-file-layout.patch:
##########
@@ -0,0 +1,54 @@
+Subject: [PATCH] Give data-skipping statistics fixtures a deterministic file 
layout
+
+The flags and before/after OPTIMIZE tests assert per-file statistics, but
+repartition(2) does not specify which IDs go in each file. Spark and the
+Gluten columnar shuffle can produce different valid round-robin layouts.
+Use an 11-row range with two partitions and no shuffle. The files have
+different counts (5 and 6), so reporting the same count for both fails
+the statistics checks. After OPTIMIZE, expect all 11 IDs in one file.
+
+Remove this patch when the pinned Delta tests no longer rely on an
+incidental round-robin layout.
+
+diff --git 
a/spark/src/test/scala/org/apache/spark/sql/delta/stats/DataSkippingDeltaTests.scala
 
b/spark/src/test/scala/org/apache/spark/sql/delta/stats/DataSkippingDeltaTests.scala
+--- 
a/spark/src/test/scala/org/apache/spark/sql/delta/stats/DataSkippingDeltaTests.scala
++++ 
b/spark/src/test/scala/org/apache/spark/sql/delta/stats/DataSkippingDeltaTests.scala
+@@ -1064,17 +1064,16 @@ trait DataSkippingDeltaTests extends 
DataSkippingDeltaTestsBase
+         "OPTIMIZE is blocked on catalog-managed tables")
+       val t = "ds_stats_before_after_optimize"
+       withTable(t) {
+-        val (numTuples, numFiles) = (10, 2)
+-        val data = spark.range(0, numTuples, 1, 2).repartition(numFiles)
++        val data = spark.range(0, 11, 1, numPartitions = 2)

Review Comment:
   This patch now uses 11 IDs and expects `(11, 0, 10)` after `OPTIMIZE`, but 
the description and linked successful CI run 45741425168 cover the earlier 
10-ID fixture at `19488e74f`. Those results do not establish the claimed 
byte-for-byte validation of the submitted patch. Update the description and 
validate the 22 affected cases and strict baseline gate on this exact patch, or 
restore the tested fixture with matching assertions and README.



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