felipepessoto commented on code in PR #13704:
URL: https://github.com/apache/gluten/pull/13704#discussion_r4777246993
##########
.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:
You’re right that the earlier run only covered the 10-row fixture. I updated
the PR description to point to [full CI on
`c937af44f`](https://github.com/apache/gluten/actions/runs/46047122962/job/140722150543),
which tested the submitted 11-row fixture: the input files have 5 and 6 rows,
and `OPTIMIZE` leaves one file with 11. I checked the eight shards’ result
lists: all 14 flags cases and all 8 OPTIMIZE cases ran, and none failed or were
skipped. The strict gate reported zero regressions, now-passing tests, or stale
entries.
<sub>Auto-replied by the [GitHub Copilot app](https://gh.io/app)</sub>
--
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]