You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "leaves12138 (via GitHub)" <gi...@apache.org> on 2026/05/20 09:06:45 UTC

[PR] [common] Serialize BlobDescriptor with current version [paimon]

leaves12138 opened a new pull request, #7915:
URL: https://github.com/apache/paimon/pull/7915

   ### Purpose
   
   `BlobDescriptor.serialize()` should always write the current descriptor format version. Otherwise, a descriptor deserialized from an older version may be serialized with the old version byte while still using the current layout with the magic header, making the bytes inconsistent.
   
   ### Changes
   
   - Write `CURRENT_VERSION` in `BlobDescriptor.serialize()`.
   - Add a regression test for deserializing a v1 blob descriptor and serializing it back with the current version.
   
   ### Tests
   
   - `mvn -U -pl paimon-common -am -Dtest=BlobDescriptorTest -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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [common] Serialize BlobDescriptor with current version [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #7915:
URL: https://github.com/apache/paimon/pull/7915


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [common] Serialize BlobDescriptor with current version [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #7915:
URL: https://github.com/apache/paimon/pull/7915#issuecomment-4497877385

   +1


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org