Skip to content

Commit

Permalink
add nest test
Browse files Browse the repository at this point in the history
  • Loading branch information
irenjj committed Feb 1, 2025
1 parent 7ed104b commit d0ed2db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arrow-schema/src/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1151,5 +1151,13 @@ mod tests {
let list_data_type_string = list_data_type.to_string();
let expected_string = "List(UInt64)";
assert_eq!(list_data_type_string, expected_string);

let nested_data_type = DataType::List(Arc::new(Field::new_list_field(
DataType::List(Arc::new(Field::new_list_field(DataType::UInt64, false))),
false,
)));
let nested_data_type_string = nested_data_type.to_string();
let nested_expected_string = "List(List(UInt64))";
assert_eq!(nested_data_type_string, nested_expected_string);
}
}

0 comments on commit d0ed2db

Please sign in to comment.