{{ message }}
feat: Migrate SST block infrastructure and file reader/writer - #44
Merged
Conversation
Member
Author
leaves12138
approved these changes
Jun 4, 2026
leaves12138
left a comment
Contributor
There was a problem hiding this comment.
Reviewed PR #44. The migrated SST block infrastructure, block cache, block reader/writer, and SST file reader/writer are consistent with the existing Paimon C++ reference implementation, and I did not find blockers.
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.

Purpose
No Linked issue.
Migrate SST (Sorted String Table) block-level I/O infrastructure:
Block primitives (
src/paimon/common/sst/):BlockEntry— key-value entry within a data block (block_entry.h)BlockHandle— offset/size pointer to a block within an SST file (block_handle.h/cpp)BlockTrailer— block checksum and compression type footer (block_trailer.h/cpp)BlockAlignedType— alignment strategy enum for block I/O (block_aligned_type.h)BloomFilterHandle— handle pointing to the bloom filter block (bloom_filter_handle.h)Block read/write (
src/paimon/common/sst/):BlockWriter— appends entries and builds a serialized block (block_writer.h/cpp)BlockReader— reads and parses a serialized block (block_reader.h/cpp)BlockIterator— iterates over entries in a parsed block (block_iterator.h/cpp)BlockCache— LRU cache wrapper for parsed blocks (block_cache.h)SST file I/O (
src/paimon/common/sst/):SstFileUtils— shared constants and utility functions (sst_file_utils.h)SstFileWriter— writes blocks, index, bloom filter, and footer into an SST file (sst_file_writer.h/cpp)SstFileReader— opens and reads blocks from an SST file (sst_file_reader.h/cpp)Tests
block_cache_test.cpp— LRU eviction, capacity limits, concurrent accesssst_file_io_test.cpp— end-to-end SST write/read round-trip, block iterationAPI and Format
Documentation
Generative AI tooling
Migrate-by: Aone Copilot (Claude)