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

   ### Purpose
   
   `BlobViewStruct` serializes the upstream table identifier through 
`Identifier#getFullName`. If the identifier uses `UNKNOWN_DATABASE`, the 
serialized form only contains the table name, but deserialization goes through 
`Identifier#fromString`, which requires `database.table`.
   
   This patch fails earlier during serialization when the upstream table 
identifier does not include a database name.
   
   ### Changes
   
   - Validate `BlobViewStruct#serialize` and reject `UNKNOWN_DATABASE` 
identifiers.
   - Add a regression test covering serialization with 
`Identifier.UNKNOWN_DATABASE`.
   
   ### Tests
   
   - `mvn -pl paimon-common -Pfast-build -Dtest=BlobViewStructTest test`
   - `mvn -pl paimon-common spotless:check -DskipTests`
   - `mvn -pl paimon-common -DskipTests compile`
   


-- 
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]

Reply via email to