leaves12138 opened a new pull request, #8140: URL: https://github.com/apache/paimon/pull/8140
### Purpose BTreeIndexMeta used zero-length encoded keys to represent null boundaries. This collides with valid empty serialized keys, for example an empty string, and can deserialize BTree metadata with a null boundary key. Readers or compactors that wrap the boundary key can then hit a NullPointerException. ### Changes - Add an explicit metadata format marker and null-key flags for BTree index metadata. - Preserve compatibility with legacy all-null metadata. - Treat legacy half-empty metadata as an empty serialized key instead of null. - Add regression coverage for empty serialized keys and BTree index writer metadata. ### Tests - `mvn -pl paimon-common -am -Dtest=BTreeIndexMetaTest,BTreeFileMetaSelectorTest -DfailIfNoTests=false test` -- 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]
