cetra3 commented on PR #12309:
URL: https://github.com/apache/arrow-rs/pull/12309#issuecomment-7121420017

   @scovich, on your two questions:
   
   > It might allow an invalid utf8 search key to match an invalid utf8 field 
that was already present, but hopefully the key was already validated?
   
   The methods on the existing types take `&str`, so the key is valid UTF-8, 
and it can only match an entry with exactly the same bytes, which is then valid 
UTF-8 too. The view methods take `&[u8]`, so a caller can pass invalid UTF-8. 
It can then only match an entry with exactly those bytes, which 
`with_full_validation` would reject.
   
   > These are all fallible, is it intentional to omit the customary `try_` 
prefix?
   
   No, renamed in e913e3392 to `try_to_variant`, `try_into_metadata`, 
`try_into_object` and `try_into_list`.
   
   @sdf-jkl, @alamb would like your review before this merges, when you have 
time.


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