liurenjie1024 commented on issue #3:
URL: https://github.com/apache/iceberg-rust/issues/3#issuecomment-1645392175

   > Another issue, that @liurenjie1024 pointed out in #2, is that Avro 
requires a strict schema when reading v1 and v2 values. So we might need two 
representations for v1 and v2 anyway.
   
   In fact, we can still have one in memory struct representation, and have two 
serialize newtypes, like this:
   ```
   struct TableMetadata {}
   
   struct TableMetadataSerializeV1(TableMetadata);
   
   impl Serialize for TableMetadataSerializeV1 {
    // v1 serialization
   }
   
   struct TableMetadataSerializeV2(TableMetadata);
   
   impl Serialize for TableMetadataSerializeV2 {
    // v2 serialization
   }
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to