Mola-maker commented on PR #12309:
URL: https://github.com/apache/arrow-rs/pull/12309#issuecomment-7236903604
Not caused by this PR, but since it rewrites `VariantObject::get`: the type
docs say `get` is a panic-free alternative for unvalidated objects, yet it
panics on a bad field id, both on main and here (`.expect("Invalid variant
object field name")`).
```rust
let md = VariantMetadata::new(&[0x01, 0, 0]);
let obj = VariantObject::new(md, &[0x32, 1, 0xFF, 0xFF, 0xFF, 0xFF, 0, 1,
0x00]);
obj.get("x"); // panics: Invalid variant object field name
```
Either `get` should return `None` here, or the docs should drop it from the
panic-free list. Happy to send a follow-up for either once this lands.
--
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]