jackylee-ch opened a new pull request, #986:
URL: https://github.com/apache/paimon-rust/pull/986

   `PartitionStatistics::total_buckets` had no serde default, so deserializing 
statistics that omit `totalBuckets` — e.g. produced by an older Paimon version 
that predates the field, which a REST catalog may still return during a 
mixed-version deployment — failed with a missing-field error instead of reading 
the record.
   
   Java declares the field as `@JsonProperty` on a primitive `int` and 
documents that it "defaults to 0 if absent (older Paimon version)". Add 
`#[serde(default)]` so the Rust struct falls back to 0 the same way.
   
   A test deserializes a payload without `totalBuckets` and asserts it reads as 
0; it fails with a missing-field error before the change.
   


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