Support chunked libcudf extraction for native UDF builds - #644
Merged
Conversation
Reconstruct chunk-manifest native libraries with size and CRC validation while preserving compatibility with older jars. Signed-off-by: liyuan <yuali@nvidia.com>
Contributor
Greptile SummaryThe PR adds a shared extractor that supports conventional and chunk-manifest
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
J[RAPIDS Accelerator JAR] --> D{libcudf representation}
D -->|Conventional entry| E[Copy to temporary file]
D -->|Chunk manifest| V[Validate manifest and chunk metadata]
V --> R[Reconstruct chunks and verify CRC32]
E --> A[Atomic install into native-deps]
R --> A
A --> B[Native Maven or standalone build]
Reviews (3): Last reviewed commit: "Limit native extraction to libcudf" | Re-trigger Greptile |
Keep conventional and chunked extraction behavior protected in CI, including manifest validation, CRC failures, and atomic cleanup. Signed-off-by: liyuan <yuali@nvidia.com>
Keep the helper focused on the only native library required by the UDF build.
GaryShen2008
approved these changes
Aug 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
libcudf.sojar entries and the chunk-manifest representation introduced for large native librariesFixes #643
Test plan
deck, userapids-4-spark_2.12-26.10.0-20260823.065604-20.jar: reconstruct its 43 chunks into a 1.4 GBlibcudf.so1494926abf3088da957ef5178a0b2271f381c976mvn clean package -Pudf-native-examples -Drapids4spark.version=26.10.0-SNAPSHOTwith CUDA 12.9 and GCC 13:BUILD SUCCESSlibcudf.so: 10 required symbols, 0 missingStringWordCountsmoke test against the packaged UDF and the same plugin jar:native udf completed rows=3libcudf.soandlibnvcomp.so.1and verify exact output byteslibcudf.sobash -n,xmllint --noout pom.xml, andgit diff --check