Repository navigation
[GLUTEN-6887][VL] Preserve the Parquet read pool and test duplicate-key anti joins - #13814
Closed
felipepessoto wants to merge 6 commits into
Closed
felipepessoto wants to merge 6 commits into
felipepessoto wants to merge 6 commits into
Conversation
Pass FileIoContext to both Velox buffered input constructors while retaining the existing file options, reader memory pool, and cached-read storage hint. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The broad Velox pin updates have only header-level syntax validation, leaving full native build/link compatibility and runtime scan correctness for human review of CI results.
No open issues 🎉
What changed in this PR
Updates Gluten’s Velox dependency for the ongoing rebase work in #6887, incorporating the version bump from #13808 and adapting buffered input construction to the new FileIoContext API.
Changes:
- Advance both IBM Velox pins from
2026_11_19to2026_11_26. - Pass file-read options and the reader memory pool through
FileIoContext, preserving cacheability for cached reads.
| File | Description |
|---|---|
| ep/build-velox/src/get-velox.sh | Updates the default and enhanced Velox pins. |
| cpp/velox/memory/GlutenDirectBufferedInput.h | Adapts direct buffered input construction to FileIoContext. |
| cpp/velox/memory/GlutenBufferedInputBuilder.h | Adapts cached buffered input construction, preserving cacheability. |
Review effort: Balanced
The pinned Velox BufferedInput constructor takes FileIoContext for a ReadFile. Use the reader options pool for local Parquet reads, leaving the other context fields at their previous defaults. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
felipepessoto
force-pushed
the
felipepessoto-upstream-velox-update
branch
from
November 27, 2026 02:24
1869587 to
75eed27
Compare
Use AssertQueryBuilder::countResults to execute plans without retaining their output, as in the pinned Velox exception tests. Keep the original and round-trip executions inside the existing expected-error check. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Native API compatibility remains unverified on the current revision because local validation covered only selected translation units, while linked CI runs were cancelled or failed on the now-replaced readCursor call.
No open issues 🎉
Review effort: Balanced
Use a null-tolerant filter that references a build key in the synthetic join. A constant filter now permits Velox to keep keys alone, leaving the real probe without its build payload. Retain duplicates for filtered broadcasts and keep null-pruning unchanged. Exercise both build modes with duplicate keys whose null and non-null payloads are each needed for the expected anti-join result. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keep the upstream buffered-input and broadcast hash-build migrations, including its probe-only filter handling. Preserve the Parquet file I/O pool and the duplicate-key anti-join regression across both broadcast build modes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
9ad7331ab19878ca5f37c7fe18bbeedb414784a9↑ The Spark 3.5 run passed all 24 test executions, including the strengthened anti-join case, using the resolved Scala sources and native libraries built for #13808.
↓ No full native link and end-to-end Spark run using this exact merge commit locally; new x86, ARM, and Kafka CI are pending.
BufferedInput(ReadFile, pool)supplied the pool toReadFileInputStream. On current main, constructing that stream with only the file leavesFileIoContext.poolnull, even thoughBufferedInputitself uses the reader pool.↑ The pinned Velox runtime exhibited exactly that difference.
↓ The historical Spark 3.4 crash and Spark 3.5 result failure concerned the join implementation now fixed on main, not the Parquet pool.
What changes are proposed in this pull request?
#13808 landed the Velox pin and compatibility fixes on
main. This PR now has two changes relative to that base:ParquetReaderIterator, pass the local file andFileIoContext{.pool = &opts.memoryPool()}toBufferedInput. This supplies the reader pool to the underlying file reads as well as to the buffering layer, as before the Velox update.The original bot commit (
068bd634bf60ebd6c48b18df42ea5f8385ea7cb0) and the separate Gluten fix commits remain in the branch history. There is no net pin change, and the PR keeps main's cached/direct input and hash-table implementations. Relates to #6887.How was this patch tested?
ParquetReaderIterator.ccfrom the resolved tree to an object with GCC 13.3.1 and the pinned IBM Veloxb33d1af2498a4fa52fff9ddbfa20ef0b17327121. Confirmed that it calls theReadFile, FileIoContextoverload.FileIoContext.poolwas null for the main-side constructor and exactly the reader pool for the resolved constructor.VeloxHashJoinSuiteand the selected anti-join case with the resolved Scala sources and the native artifact from [GLUTEN-6887][VL] Daily Update Velox Version (2026_11_26) #13808. All 24 test executions passed. This Spark run did not use a locally linked full native library from the merge commit.Was this patch authored or co-authored using generative AI tooling?
Generated-by: GitHub Copilot 1.0.115-7 (GPT-6.1 Sol and GPT-6.2 Astra)