feat(nimble): Add per-chunk null count (#992) - #992
Closed
prashantgolash wants to merge 1 commit into
Closed
Conversation
|
@prashantgolash has exported this pull request. If you are a Meta employee, you can view the originating Diff in D111913795. |
prashantgolash
added a commit
that referenced
this pull request
Jul 20, 2026
Summary: Pull Request resolved: #992 The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Differential Revision: D111913795
prashantgolash
force-pushed
the
export-D111913795
branch
from
July 20, 2026 20:38
b2f8a32 to
0ca15ab
Compare
prashantgolash
added a commit
that referenced
this pull request
Jul 20, 2026
Summary: Pull Request resolved: #992 The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Differential Revision: D111913795
prashantgolash
added a commit
that referenced
this pull request
Jul 20, 2026
Summary: Pull Request resolved: #992 The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku Differential Revision: D111913795
prashantgolash
force-pushed
the
export-D111913795
branch
from
July 20, 2026 23:21
0ca15ab to
ffb6034
Compare
xiaoxmeng
approved these changes
Jul 22, 2026
prashantgolash
force-pushed
the
export-D111913795
branch
from
July 26, 2026 06:30
ffb6034 to
ebbe073
Compare
prashantgolash
added a commit
that referenced
this pull request
Jul 26, 2026
Summary: Pull Request resolved: #992 The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku Reviewed By: xiaoxmeng Differential Revision: D111913795
prashantgolash
added a commit
that referenced
this pull request
Jul 26, 2026
Summary: Pull Request resolved: #992 The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku Reviewed By: xiaoxmeng Differential Revision: D111913795
prashantgolash
force-pushed
the
export-D111913795
branch
from
July 26, 2026 16:30
ebbe073 to
0dfa251
Compare
meta-codesync Bot
pushed a commit
that referenced
this pull request
Jul 27, 2026
Summary: The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku Reviewed By: xiaoxmeng Differential Revision: D111913795
meta-codesync
Bot
force-pushed
the
export-D111913795
branch
from
July 27, 2026 05:47
0dfa251 to
651c7a3
Compare
Summary: The first real per-chunk statistic. Chunk stats are still purely positional; this records how many nulls each chunk holds, so a later reader can skip chunks on null-related predicates and we can eventually retire the read-time byte-peeking row estimates in ChunkedDecoder. - The writer counts nulls per chunk during encode, only when chunk stats are enabled. The fleet default is off, so no writer pays for this yet. - Stored as a new field appended to the existing chunk-stats flatbuffer. Files written before this simply lack it, and the reader reports "unknown" rather than a wrong value. - Reader accessor StreamIndex::chunkNullCount returns the count, or nullopt for pre-stats files. Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku Reviewed By: xiaoxmeng Differential Revision: D111913795
meta-codesync
Bot
force-pushed
the
export-D111913795
branch
from
July 27, 2026 05:51
651c7a3 to
a67beb2
Compare
|
This pull request has been merged in c0c6b7d. |
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:
The first real per-chunk statistic. Chunk stats are still purely positional;
this records how many nulls each chunk holds, so a later reader can skip chunks
on null-related predicates and we can eventually retire the read-time
byte-peeking row estimates in ChunkedDecoder.
enabled. The fleet default is off, so no writer pays for this yet.
written before this simply lack it, and the reader reports "unknown" rather
than a wrong value.
pre-stats files.
Rationale: https://docs.google.com/document/d/1cTCXje3RkPdhwFGK-FTY5muy4Cky2qnfnP-e_VFkjQA/edit?tab=t.0#heading=h.rpljwjiiglku
Reviewed By: xiaoxmeng
Differential Revision: D111913795