Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
John Hughes committed Dec 17, 2022
1 parent 739dfeb commit c1e0f4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
1 change: 0 additions & 1 deletion tests/it/array/growable/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ fn extension() {

let result: ListArray<i32> = a.into();
assert_eq!(array_ext.data_type(), result.data_type());
dbg!(result);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/it/compute/concatenate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,5 @@ fn list_of_extensions_of_struct() {
let empty1 = new_empty_array(data_type.clone());

let c = concatenate(&[empty0.as_ref(), empty1.as_ref()]).unwrap();
dbg!(c.data_type());
assert_eq!(c.data_type(), &data_type);
}
20 changes: 3 additions & 17 deletions tests/it/ffi/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,24 +362,10 @@ fn extension_children() -> Result<()> {
),
true,
);
test_round_trip_schema(field)
}

#[test]
fn extension_struct() -> Result<()> {
let data_type = DataType::Extension(
"ext".to_owned(),
Box::new(DataType::Struct(vec![Field::new(
"a",
DataType::Int32,
true,
)])),
None,
);
test_round_trip_schema(field.clone())?;

let values = vec![Int32Array::from([Some(1), None, Some(3)]).boxed()];
let validity = Bitmap::from([true, false, true]);

let array = StructArray::new(data_type, values, validity.into());
let array = StructArray::new(field.data_type, values, validity.into());
test_round_trip(array)
}
}

0 comments on commit c1e0f4b

Please sign in to comment.