fix(nimble): Keep nulls in dictionary reads without AVX2 (#18621) - #18621
Open
Yuhta wants to merge 1 commit into
Open
fix(nimble): Keep nulls in dictionary reads without AVX2 (#18621)#18621Yuhta wants to merge 1 commit into
Yuhta wants to merge 1 commit into
Conversation
✅ Deploy Preview for meta-velox canceled.
|
Contributor
|
@Yuhta has exported this pull request. If you are a Meta employee, you can view the originating Diff in D116833280. |
Selective Build Plan
Selective build plan |
shrinidhijoshi
approved these changes
Aug 21, 2026
Yuhta
force-pushed
the
export-D116833280
branch
from
August 23, 2026 20:26
7616f81 to
b5dd612
Compare
Yuhta
added a commit
to Yuhta/velox
that referenced
this pull request
Aug 23, 2026
…ubator#18621) Summary: Reading a Nimble string column that keeps its dictionary encoding dropped every null on any platform where `process::hasAvx2()` is false, which is all of aarch64. A 200-row column holding `always_the_same` with a null every 7th row came back as a `DictionaryVector` carrying no null flags, so row 0 read as `always_the_same` instead of null. The dense dictionary-index path wrote nulls only into the reader's read-range bitmap. It then relied on `returnReaderNulls_` to hand that bitmap back from `resultNulls()`. `setReturnNullsMode` clears that flag whenever `useBulkPath()` is false, and `process::hasAvx2()` makes that permanent off AVX2. `resultNulls()` then returns the output-indexed buffer instead, which nothing on this path filled. It now copies the read-range nulls into that buffer, the way the sparse row-set path already did. Reviewed By: vandreykiv Differential Revision: D116833280
Yuhta
added a commit
to Yuhta/velox
that referenced
this pull request
Aug 23, 2026
…ubator#18621) Summary: Reading a Nimble string column that keeps its dictionary encoding dropped every null on any platform where `process::hasAvx2()` is false, which is all of aarch64. A 200-row column holding `always_the_same` with a null every 7th row came back as a `DictionaryVector` carrying no null flags, so row 0 read as `always_the_same` instead of null. The dense dictionary-index path wrote nulls only into the reader's read-range bitmap. It then relied on `returnReaderNulls_` to hand that bitmap back from `resultNulls()`. `setReturnNullsMode` clears that flag whenever `useBulkPath()` is false, and `process::hasAvx2()` makes that permanent off AVX2. `resultNulls()` then returns the output-indexed buffer instead, which nothing on this path filled. It now copies the read-range nulls into that buffer, the way the sparse row-set path already did. Reviewed By: vandreykiv Differential Revision: D116833280
Yuhta
force-pushed
the
export-D116833280
branch
from
August 23, 2026 22:26
b5dd612 to
a5a8dfd
Compare
…ubator#18621) Summary: Reading a Nimble string column that keeps its dictionary encoding dropped every null on any platform where `process::hasAvx2()` is false, which is all of aarch64. A 200-row column holding `always_the_same` with a null every 7th row came back as a `DictionaryVector` carrying no null flags, so row 0 read as `always_the_same` instead of null. The dense dictionary-index path wrote nulls only into the reader's read-range bitmap. It then relied on `returnReaderNulls_` to hand that bitmap back from `resultNulls()`. `setReturnNullsMode` clears that flag whenever `useBulkPath()` is false, and `process::hasAvx2()` makes that permanent off AVX2. `resultNulls()` then returns the output-indexed buffer instead, which nothing on this path filled. It now copies the read-range nulls into that buffer, the way the sparse row-set path already did. Reviewed By: vandreykiv Differential Revision: D116833280
Yuhta
force-pushed
the
export-D116833280
branch
from
August 24, 2026 00:34
a5a8dfd to
f7f27f4
Compare
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:
Reading a Nimble string column that keeps its dictionary encoding dropped every null on any platform where
process::hasAvx2()is false, which is all of aarch64. A 200-row column holdingalways_the_samewith a null every 7th row came back as aDictionaryVectorcarrying no null flags, so row 0 read asalways_the_sameinstead of null.The dense dictionary-index path wrote nulls only into the reader's read-range bitmap. It then relied on
returnReaderNulls_to hand that bitmap back fromresultNulls().setReturnNullsModeclears that flag wheneveruseBulkPath()is false, andprocess::hasAvx2()makes that permanent off AVX2.resultNulls()then returns the output-indexed buffer instead, which nothing on this path filled. It now copies the read-range nulls into that buffer, the way the sparse row-set path already did.Reviewed By: vandreykiv
Differential Revision: D116833280