shyjsarah opened a new pull request, #743:
URL: https://github.com/apache/paimon-rust/pull/743

   ## Summary
   
   Follow up on #742 by aligning the Avro type of `ManifestEntry._FILE` with 
Java Paimon.
   
   Java's `ManifestAvroReader` requires `_FILE` to be a `RECORD`, but 
paimon-rust currently writes it as a nullable `UNION` (`["null", record]`). 
This causes Java to reject Rust-written manifests with:
   
   ```text
   Unexpected Manifest Avro type for field _FILE: expected RECORD but found 
UNION.
   ```
   
   ## Changes
   
   - Write `_FILE` directly as a non-null Avro record.
   - Add a schema regression test that verifies `_FILE` is a non-null record.
   - Keep a compatibility test proving paimon-rust can still read manifests 
written with the previous Rust field order and nullable `_FILE` union.
   
   ## Testing
   
   - [x] `cargo fmt --all -- --check`
   - [x] `cargo test -p paimon --lib` (2380 passed, 2 ignored)
   - [x] `cargo clippy -p paimon --all-targets -- -D warnings`
   
   ## Notes
   
   - No public API changes.
   - Existing Rust-written manifests remain readable by paimon-rust.
   - The change only affects the schema used for newly written manifest files.
   


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