JingsongLi opened a new pull request, #8599: URL: https://github.com/apache/paimon/pull/8599
## Purpose Define the configuration and schema contract for source-backed scalar primary-key indexes, preparing BTree and Bitmap indexes for the later build, write, and scan changes. ## Changes - Add `pk-btree.index.columns` and `pk-bitmap.index.columns`, following the existing `pk-vector.index.columns` configuration model. - Resolve Vector, BTree, and Bitmap index definitions in schema field order and enforce at most one primary-key index per column. - Parse field-scoped BTree and Bitmap options and validate them through their global index factories. - Validate primary-key table, deletion-vector, bucket-mode, merge-on-read, column-type, and clustering constraints. - Allow both fixed and Postpone Bucket modes, matching existing PK-vector support. - Prevent rename, drop, or type changes for configured primary-key index columns. ## Impact This PR defines and validates the scalar primary-key index contract. It does not yet build index payloads; those changes follow in later PRs. Existing primary-key vector-index behavior remains unchanged. ## Validation - 50 targeted `paimon-core` tests passed for definition resolution, option parsing, schema validation, Postpone Bucket support, and schema evolution. - `paimon-api` and `paimon-core` Checkstyle, Spotless, and Enforcer checks passed. - Verified the PR contains one commit and 795 changed lines. -- 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]
