We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5da8efe commit 2f68de3Copy full SHA for 2f68de3
src/dataframe.rs
@@ -971,7 +971,9 @@ impl PyDataFrame {
971
// PyArrow imports the capsule it assumes ownership of the stream and
972
// nulls out the capsule's internal pointer so the destructor does not
973
// free it twice.
974
- PyCapsule::new(py, stream, Some(ARROW_STREAM_NAME)).map_err(Into::into)
+ // ARROW_STREAM_NAME is a `&CStr`; PyCapsule::new expects an
975
+ // `Option<CString>` for the name, so convert it here.
976
+ PyCapsule::new(py, stream, Some(ARROW_STREAM_NAME.into())).map_err(Into::into)
977
}
978
979
fn execute_stream(&self, py: Python) -> PyDataFusionResult<PyRecordBatchStream> {
0 commit comments