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

   The fast OCF reader (`spec/avro/ocf.rs`) only accepted the null, snappy and 
zstandard codecs, and the object-file writer (`spec/avro/objects_file.rs`) only 
produced those three. `deflate` is a standard Avro codec, so a manifest or 
object file written with it — e.g. by Java Avro, where deflate is the default — 
failed to read with `avro ocf: unsupported codec: deflate`, and could not be 
written at all.
   
   Decode deflate blocks with `flate2` (the Avro deflate codec is raw DEFLATE, 
matching the `miniz_oxide` output apache-avro produces on the write path) and 
map the `deflate` compression name to `Codec::Deflate`.
   
   Round-trip tests cover the reader (write with apache-avro, read back and 
decode the record) and a write-then-read of a manifest entry through the fast 
decoder.
   


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