scovich opened a new pull request, #7894:
URL: https://github.com/apache/arrow-rs/pull/7894

   # Which issue does this PR close?
   
   Part of
   * https://github.com/apache/arrow-rs/issues/6736
   
   # Rationale for this change
   
   An expected use case for variant pathing (e.g. a future `variant_get`) would 
be to request a field from a variant value that is expected to be an object, or 
an element from a variant value that is expected to be an array. Those methods 
are currently missing. 
   
   # What changes are included in this PR?
   
   Define `Variant::get_object_field` and `Variant::get_array_element` methods 
that do what they say (returning `None` if anything mismatches).
   
   # Are these changes tested?
   
   New doc tests for the methods.
   
   # Are there any user-facing changes?
   
   New public methods on `Variant` enum.


-- 
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: github-unsubscr...@arrow.apache.org

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

Reply via email to