Skip to content

Commit b184e28

Browse files
committed
fix: file io fuzzer lists also need to use special arrow comparator
1 parent 86929c1 commit b184e28

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

fuzz/fuzz_targets/file_io.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fuzz_target!(|array_data: ArbitraryArray| -> Corpus {
6363
output.dtype()
6464
);
6565

66-
if has_struct(array_data.dtype()) {
66+
if matches!(array_data.dtype(), DType::Struct(_, _) | DType::List(_, _)) {
6767
compare_struct(array_data, output);
6868
} else {
6969
let r = compare(&array_data, &output, Operator::Eq).vortex_unwrap();
@@ -126,7 +126,3 @@ fn struct_has_duplicate_names(struct_dtype: &StructDType) -> bool {
126126
.fields()
127127
.any(|dtype| has_duplicate_field_names(&dtype))
128128
}
129-
130-
fn has_struct(dtype: &DType) -> bool {
131-
dtype.is_struct() || dtype.as_list_element().map(has_struct).unwrap_or(false)
132-
}

0 commit comments

Comments
 (0)