Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 14, 2023
1 parent becda12 commit 2f7767b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrow/src/pyarrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ impl FromPyArrow for Schema {
validate_pycapsule(capsule, "arrow_schema")?;

let schema_ptr = unsafe { capsule.reference::<FFI_ArrowSchema>() };
let schema = Schema::try_from(&c_schema).map_err(to_py_err)?;
let schema = Schema::try_from(schema_ptr).map_err(to_py_err)?;
return Ok(schema);
}

Expand Down Expand Up @@ -353,7 +353,7 @@ impl FromPyArrow for RecordBatch {
let array_data = ffi::from_ffi(ffi_array, schema_ptr).map_err(to_py_err)?;
let array_ref = make_array(array_data);

if !matches!(array_ref.data_type(), DataType::Struct) {
if !matches!(array_ref.data_type(), DataType::Struct(_)) {
return Err(PyTypeError::new_err(
"Expected Struct type from __arrow_c_array.",
));
Expand Down

0 comments on commit 2f7767b

Please sign in to comment.