lucasfang opened a new pull request, #80:
URL: https://github.com/apache/paimon-cpp/pull/80
### Purpose
Linked issue: No linked issue
This change adds data file metadata support, including `DataFileMeta` with
versioned serializers and `DataFilePathFactory` for data file path generation.
Included changes:
- **DataFileMeta**:
- Adds `data_file_meta.h` / `.cpp` — core data file metadata structure
with fields for file name, file size, row count, min/max keys, key/value stats,
min sequence number, max sequence number, schema ID, level, creation time,
delete row count, embedded file index, file source, and extra files
- Adds `data_file_meta_test.cpp` — test coverage for DataFileMeta
- **DataFileMeta serializers**:
- Adds `data_file_meta_serializer.h` / `.cpp` — base serializer for
DataFileMeta with version dispatch
- Adds `data_file_meta_09_serializer.h` / `.cpp` — serializer for schema
version 09
- Adds `data_file_meta_10_serializer.h` / `.cpp` — serializer for schema
version 10
- Adds `data_file_meta_12_serializer.h` / `.cpp` — serializer for schema
version 12
- Adds `data_file_meta_first_row_id_legacy_serializer.h` / `.cpp` — legacy
serializer with first row ID support
- Adds `data_file_meta_serializer_test.cpp` — test coverage for serializers
- **DataFilePathFactory**:
- Adds `data_file_path_factory.h` / `.cpp` — factory for generating data
file paths with support for changelog files, bucket paths, and partition paths
- Adds `data_file_path_factory_test.cpp` — test coverage for
DataFilePathFactory
### Tests
Test coverage included in this change:
- `DataFileMetaTest` (`data_file_meta_test.cpp`)
- `DataFileMetaSerializerTest` (`data_file_meta_serializer_test.cpp`)
- `DataFilePathFactoryTest` (`data_file_path_factory_test.cpp`)
### API and Format
No public API, storage format, or protocol changes.
### Documentation
No documentation changes required.
### Generative AI tooling
Migrate-by: Aone Copilot (Opus 4.8)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]