Jefffrey commented on code in PR #10894:
URL: https://github.com/apache/arrow-rs/pull/10894#discussion_r3911954427
##########
arrow-pyarrow/src/lib.rs:
##########
@@ -314,39 +314,51 @@ impl ToPyArrow for Schema {
}
}
+/// Convert a Python object to [`ArrayData`] without validating the result.
+///
+/// # Safety
+///
+/// The caller must ensure the data produced by the Python object upholds the
invariants
+/// required by [`ArrayData`]. Prefer [`FromPyArrow::from_pyarrow_bound`] for
`ArrayData`, which
+/// validates the result before returning it.
+unsafe fn from_pyarrow_bound_unsafe(value: &Bound<PyAny>) ->
PyResult<ArrayData> {
Review Comment:
do we maybe have an example of how this could be used by users? for example
in one of the pyarrow testing crates
--
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]