Skip to content

Commit 5ea9d24

Browse files
a10yAdamGS
authored andcommitted
remove struct test
Signed-off-by: Andrew Duffy <[email protected]>
1 parent d8c2f12 commit 5ea9d24

File tree

1 file changed

+0
-35
lines changed
  • vortex-array/src/arrays/struct_/compute

1 file changed

+0
-35
lines changed

vortex-array/src/arrays/struct_/compute/mod.rs

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -199,41 +199,6 @@ mod tests {
199199
assert_eq!(casted.dtype(), &nullable_dtype);
200200
}
201201

202-
#[test]
203-
fn test_cast_cannot_change_name_order() {
204-
let array = StructArray::try_new(
205-
["xs", "ys", "zs"].into(),
206-
vec![
207-
buffer![1u8].into_array(),
208-
buffer![1u8].into_array(),
209-
buffer![1u8].into_array(),
210-
],
211-
1,
212-
Validity::NonNullable,
213-
)
214-
.unwrap();
215-
216-
let tu8 = DType::Primitive(PType::U8, NonNullable);
217-
218-
let result = cast(
219-
array.as_ref(),
220-
&DType::Struct(
221-
StructFields::new(
222-
FieldNames::from(["ys", "xs", "zs"]),
223-
vec![tu8.clone(), tu8.clone(), tu8],
224-
),
225-
NonNullable,
226-
),
227-
);
228-
assert!(
229-
result.as_ref().is_err_and(|err| {
230-
err.to_string()
231-
.contains("cannot cast {xs=u8, ys=u8, zs=u8} to {ys=u8, xs=u8, zs=u8}")
232-
}),
233-
"{result:?}"
234-
);
235-
}
236-
237202
#[test]
238203
fn test_cast_complex_struct() {
239204
let xs = PrimitiveArray::from_option_iter([Some(0i64), Some(1), Some(2), Some(3), Some(4)]);

0 commit comments

Comments
 (0)