Skip to content

refactor: Add chunkSize to ChunkLocation and rename ChunkIndexWriter::newStripe#667

Open
xiaoxmeng wants to merge 1 commit into
facebookincubator:mainfrom
xiaoxmeng:export-D101830061
Open

refactor: Add chunkSize to ChunkLocation and rename ChunkIndexWriter::newStripe#667
xiaoxmeng wants to merge 1 commit into
facebookincubator:mainfrom
xiaoxmeng:export-D101830061

Conversation

@xiaoxmeng
Copy link
Copy Markdown
Contributor

@xiaoxmeng xiaoxmeng commented Apr 21, 2026

Summary:
CONTEXT: ChunkLocation only stored stream offset and row offset but not the chunk byte size. Callers needed to compute chunk size by looking at the next chunk offset or stream size, duplicating logic in multiple places.

WHAT:

  • Add chunkSize field to ChunkLocation for self-contained chunk metadata
  • StreamIndex::create and createStreamIndex now take streamSize parameter to compute last chunk size
  • Rename ChunkIndexWriter::newStripe → finishStripe for clarity
  • Rename ChunkLocation::streamOffset → chunkOffset for consistency

Reviewed By: tanjialiang

Differential Revision: D101830061

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Apr 21, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync Bot commented Apr 21, 2026

@xiaoxmeng has exported this pull request. If you are a Meta employee, you can view the originating Diff in D101830061.

@xiaoxmeng xiaoxmeng force-pushed the export-D101830061 branch 3 times, most recently from 7068006 to c76d2f4 Compare April 22, 2026 08:02
…:newStripe

Summary:
CONTEXT: ChunkLocation only stored stream offset and row offset but not the chunk byte size. Callers needed to compute chunk size by looking at the next chunk offset or stream size, duplicating logic in multiple places.

WHAT:
- Add chunkSize field to ChunkLocation for self-contained chunk metadata
- StreamIndex::create and createStreamIndex now take streamSize parameter to compute last chunk size
- Rename ChunkIndexWriter::newStripe → finishStripe for clarity
- Rename ChunkLocation::streamOffset → chunkOffset for consistency

Reviewed By: tanjialiang

Differential Revision: D101830061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant