Skip to content

feat:Support specify field ids for table read context#75

Merged
lxy-9602 merged 4 commits into
alibaba:mainfrom
jichen20210919:field-id-projection-support-v1
Jan 24, 2026
Merged

feat:Support specify field ids for table read context#75
lxy-9602 merged 4 commits into
alibaba:mainfrom
jichen20210919:field-id-projection-support-v1

Conversation

@jichen20210919
Copy link
Copy Markdown
Contributor

Purpose

paimon-cpp currently only support select columns using column name, the patch is used to support select columns using field id as well.

Linked issue: #34

Tests

add UT internal_read_context_test.cpp#TestReadWithSpecifiedFieldId
add UT internal_read_context_test.cpp#TestReadWithSpecifiedFieldIdAndSchema
add UT internal_read_context_test.cpp#TestReadWithFieldIdsAndSpecialFields
update UT read_context_test.cpp

API and Format

add SetReadFieldIds(const std::vector<int32_t>& read_field_ids) in class ReadContextBuilder

Documentation

Comment thread include/paimon/special_field_id.h Outdated
Comment thread src/paimon/core/utils/special_field_ids.cpp
Copy link
Copy Markdown
Collaborator

@lxy-9602 lxy-9602 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@lxy-9602 lxy-9602 merged commit 775bc8c into alibaba:main Jan 24, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants