Sl1mb0 opened a new issue, #706:
URL: https://github.com/apache/iceberg-rust/issues/706

   # Problem
   If I write a `Manifest` to an `output.avro` file and then read that same 
`output.avro` file into another `Manifest` object, asserting that the two 
objects are equal fails due to inequality between the `partition` fields of 
each `Manifest`:
   
   ## Example
   ```rust
   // Write manifest
   let manifest_list_entry = 
manifest_writer.write(input_manifest.clone()).await.unwrap();
   
   // Assert that the manifest path exists.
   let manifest_path = PathBuf::from(manifest_list_entry.manifest_path);
   assert!(manifest_path.exists());
   
   // Assert that manifest file can be parsed back into a `Manifest` struct.
   let buf = std::fs::read(&manifest_path).unwrap();
   let output_manifest = Manifest::parse_avro(&buf).unwrap();
   
   // ..
   // Assert that all other fields are equal
   // ..
   
   // Fails
   assert_eq!(file1.partition(), file2.partition());
   ```
   
   
   ## Output
   ```
   assertion `left == right` failed
     left: Struct { fields: [Primitive(Boolean(true))], null_bitmap: 
BitVec<usize, bitvec::order::Lsb0> { addr: 0x78a7fc007210, head: 000000, bits: 
1, capacity: 64 } [0] }
    right: Struct { fields: [], null_bitmap: BitVec<usize, bitvec::order::Lsb0> 
{ addr: 0x8, head: 000000, bits: 0, capacity: 0 } [] }
   ```


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to