alamb commented on issue #12395: URL: https://github.com/apache/arrow-rs/issues/12395#issuecomment-7131132224
> I think the current problem is that our present safe APIs allow for creating invalid arrays, so we'd either need breaking API changes to prevent this, or a simpler (and probably cheaper way) is just adding validation on append; adding a new unsafe API wouldn't fix the current APIs I agree we will have to either do a breaking API change or add runtime validation However, I worry about runtime validation overhead, but I do agree it is better than invalid arrays Maybe we could help that by offering some examples of how to build arrays without the builder (probably faster anyways) via `unsafe` `MapArray::new()` 🤔 -- 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]
