felipepessoto commented on code in PR #13058:
URL: https://github.com/apache/gluten/pull/13058#discussion_r4084338850


##########
.github/workflows/util/delta-spark-ut/apply-delta-test-patches.sh:
##########
@@ -135,6 +135,67 @@ git -C "$DELTA_DIR" --no-pager diff -- \
   
"spark/src/test/scala/org/apache/spark/sql/delta/DeltaParquetFileFormatSuite.scala"
 || true
 echo "::endgroup::"
 
+echo "::group::Capping predicate-pushdown DV fixture row groups by row count"
+# DeletionVectorsWithPredicatePushdownSuite writes one 1,000,000-row Parquet
+# file and expects its 2 MiB block size to produce two row groups. The rows can
+# arrive at Velox in one Arrow batch, so the native writer cannot evaluate its
+# buffered-byte flush threshold until the whole batch is already in one group.
+# Cap this fixture at 500,000 rows per group so Arrow splits the batch while
+# retaining the native write path and the existing Hadoop block-size setting.
+DV_SUITE="$DELTA_DIR/spark/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala"
+if [ ! -f "$DV_SUITE" ]; then
+  echo "Expected file not found in Delta clone: $DV_SUITE" >&2
+  echo "The Delta directory layout for ref '${DELTA_REF}' may have changed." 
>&2
+  exit 1
+fi
+if ! sed 's/^__BLANK_CONTEXT__$/ /' <<'PATCH' | git -C "$DELTA_DIR" apply -
+diff --git 
a/spark/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala
 
b/spark/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala
+--- 
a/spark/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala
++++ 
b/spark/src/test/scala/org/apache/spark/sql/delta/deletionvectors/DeletionVectorsSuite.scala
+@@ -913,12 +913,14 @@ class DeletionVectorsWithPredicatePushdownSuite extends 
DeletionVectorsSuite {
+     super.beforeAll()
+__BLANK_CONTEXT__
+     // 2MB rowgroups.
+     hadoopConf().set("parquet.block.size", (2 * 1024 * 1024).toString)
+__BLANK_CONTEXT__
+-    spark.range(0, multiRowgroupTableRowsNum, 1, 1).toDF("id")
+-      .write
+-      .option(DeltaConfigs.ENABLE_DELETION_VECTORS_CREATION.key, 
true.toString)
+-      .format("delta")
+-      .saveAsTable(multiRowgroupTable)
++    withSQLConf("spark.gluten.sql.native.parquet.write.blockRows" -> 
"500000") {
++      spark.range(0, multiRowgroupTableRowsNum, 1, 1).toDF("id")
++        .write
++        .option(DeltaConfigs.ENABLE_DELETION_VECTORS_CREATION.key, 
true.toString)
++        .format("delta")
++        .saveAsTable(multiRowgroupTable)
++    }
+__BLANK_CONTEXT__
+     val deltaLog = DeltaLog.forTable(spark, 
TableIdentifier(multiRowgroupTable))
+     val files = deltaLog.update().allFiles.collect()
+PATCH
+then
+  echo "ERROR: predicate-pushdown DV fixture patch did not apply." >&2
+  echo "The patch expects the Delta v4.2.0 beforeAll fixture shape;" \
+    "ref '${DELTA_REF}' must remain source-compatible." >&2
+  exit 1

Review Comment:
   Not valid issue



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