Skip to content

Commit 7ff146e

Browse files
committed
Fix array data binding in py_obj_to_scalar_value function
1 parent 7f2d9ae commit 7ff146e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub(crate) fn py_obj_to_scalar_value(py: Python, obj: Py<PyAny>) -> PyResult<Sca
229229
obj_ref.clone().unbind()
230230
};
231231
let array_bound = array_obj.bind(py);
232-
let array_data = ArrayData::from_pyarrow_bound(&array_bound)
232+
let array_data = ArrayData::from_pyarrow_bound(array_bound)
233233
.map_err(|e| PyValueError::new_err(format!("Failed to extract pyarrow array: {e}")))?;
234234
let array = make_array(array_data);
235235
let offsets = OffsetBuffer::new(ScalarBuffer::from(vec![0, array.len() as i32]));

0 commit comments

Comments
 (0)