Skip to content

[CORE] Fix Delta 4.0 Spark 4.1 package build#12078

Open
malinjawi wants to merge 1 commit into
apache:mainfrom
malinjawi:fix/delta40-nightly-package
Open

[CORE] Fix Delta 4.0 Spark 4.1 package build#12078
malinjawi wants to merge 1 commit into
apache:mainfrom
malinjawi:fix/delta40-nightly-package

Conversation

@malinjawi
Copy link
Copy Markdown
Contributor

@malinjawi malinjawi commented May 12, 2026

What changes were proposed in this pull request?

This PR fixes the nightly package failure for the Spark 4.1 + Delta 4.0 Velox build path.

Changes:

  • Use Spark Logging plus explicit SparkMDC.of(...) calls in Delta 4.0 logging code so the code compiles across Spark 4.0, Spark 4.1, Delta 4.0, and Delta 4.1.
  • Add Spark 4.1 compatibility shims for Delta 4.0 references to the old streaming CheckpointFileManager and MemoryStream packages.
  • Add PR CI compile coverage for Spark 4.1 + Delta in the Velox x86 workflow so this package-only nightly failure is caught earlier.

Why are the changes needed?

The nightly package build compiles Spark 4.1 with -Pdelta, but PR CI only covered Delta on the Spark 4.0 fast-build path. Spark 4.1 changed the logging MDC shape and moved streaming APIs used by Delta 4.0, so the issue only surfaced in nightly packaging.

Delta 4.1 also drops the org.apache.spark.internal.LoggingShims class that Delta 4.0 published, so using Spark Logging keeps this copied Delta 4.0 source compatible with the newer Delta artifact line as well.

How was this patch tested?

  • ./build/mvn -ntp -pl shims/spark41 clean install -Pspark-4.1 -Pscala-2.13 -Pjava-21 -DskipTests -Dmaven.source.skip
  • ./build/mvn -ntp -pl backends-velox -am clean install -Pspark-4.1 -Pscala-2.13 -Pjava-21 -Pbackends-velox -Pceleborn -Puniffle -Pdelta -DskipTests -Dmaven.source.skip
  • ./build/mvn -ntp -pl backends-velox -am clean install -Pspark-4.0 -Pscala-2.13 -Pjava-21 -Pbackends-velox -Pceleborn -Puniffle -Piceberg -Phudi -Pdelta -Ppaimon -DskipTests -Dmaven.source.skip
  • ./build/mvn -ntp -pl backends-velox -am clean test-compile -Pspark-4.1 -Pscala-2.13 -Pjava-21 -Pbackends-velox -Pceleborn -Puniffle -Pdelta -Ddelta.package.name=delta-spark_4.1 -Ddelta.version=4.1.0 -Ddelta.binary.version=40 -DskipTests -Dmaven.source.skip
  • ./build/mvn -ntp -pl backends-velox -am clean test-compile -Pspark-4.1 -Pscala-2.13 -Pjava-21 -Pbackends-velox -Pceleborn -Puniffle -Pdelta -DskipTests -Dmaven.source.skip
  • ./build/mvn -ntp -pl backends-velox -am clean test-compile -Pspark-4.0 -Pscala-2.13 -Pjava-21 -Pbackends-velox -Pceleborn -Puniffle -Pdelta -DskipTests -Dmaven.source.skip
  • git diff --check

@github-actions github-actions Bot added CORE works for Gluten Core VELOX INFRA labels May 12, 2026
@malinjawi malinjawi force-pushed the fix/delta40-nightly-package branch from 0560d84 to f8e7c1f Compare May 12, 2026 13:58
@malinjawi malinjawi changed the title [GLUTEN] Fix Delta 4.0 Spark 4.1 package build [CORE] Fix Delta 4.0 Spark 4.1 package build May 12, 2026
@malinjawi malinjawi marked this pull request as ready for review May 12, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CORE works for Gluten Core INFRA VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant