hvnsweeting opened a new pull request, #706:
URL: https://github.com/apache/avro-rs/pull/706

   In AVRO-3678, added supports for Value::validate accepting a Float value as 
Double but writers wrote it as 4 bytes f32.
   
   The reader cannot read it back 
   
   ```
   thread 'float_under_double_schema_roundtrip' (197396) panicked at 
avro/tests/avro_float_under_double_schema.rs:32:16:
   apache_avro::error::Error: Error { details: Failed to read double: failed to 
fill whole buffer: failed to fill whole buffer }
   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
   test float_under_double_schema_roundtrip ... FAILED
   ```
   
   This change write float as 8 bytes double when used under schema Double 
(f64).
   
   [Spec](https://avro.apache.org/docs/1.11.1/specification/#primitive-types-1)
   
   > a double is written as 8 bytes. 
   


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