alamb opened a new issue, #7665:
URL: https://github.com/apache/arrow-rs/issues/7665

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   I was trying to write some tests for the VariantBuilder from @PinkCrow007 in
   - https://github.com/PinkCrow007/arrow-rs/pull/1
   
   However, I found that `VariantObject::field` was not implemented: 
https://github.com/apache/arrow-rs/blob/71ee9d9aa090a4d733c8404c6edb8d34d767a0c4/parquet-variant/src/variant.rs#L317-L316
   
   So when I wrote code to access a field from an object
   ```rust
   assert_eq!(variant_object.field("first_name"), Variant::from("Jiaying")
   ```
   
   It panic'd on me
   
   **Describe the solution you'd like**
   Implement the two methods named in this ticket. The code is here:
   
   
https://github.com/apache/arrow-rs/blob/2f2e705734194aa1256379ff6dd55e58b235323e/parquet-variant/src/variant.rs#L311-L317
   
   **Describe alternatives you've considered**
   1. Implement the code
   2. Update the existing tests here: 
https://github.com/apache/arrow-rs/blob/2f2e705734194aa1256379ff6dd55e58b235323e/parquet-variant/tests/variant_interop.rs#L95-L99
   
   To retrieve each field and verify its value
   
   The expected answers are here:  
   
   
https://github.com/apache/parquet-testing/blob/84d525a8731cec345852fb4ea2e7c581fbf2ef29/variant/data_dictionary.json#L46-L54
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


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