Skip to content

Commit

Permalink
apply PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
balbok0 committed Apr 9, 2023
1 parent e22d877 commit 17c9b2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/src/delta_arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ mod tests {

#[test]
fn test_delta_from_arrow_map_type() {
let timestamp_field = ArrowDataType::Map(
let arrow_map = ArrowDataType::Map(
Box::new(ArrowField::new(
"key_value",
ArrowDataType::Struct(vec![
Expand All @@ -765,8 +765,10 @@ mod tests {
)),
false,
);
let converted_map: crate::SchemaDataType = (&arrow_map).try_into().unwrap();

assert_eq!(
<crate::SchemaDataType as TryFrom<&ArrowDataType>>::try_from(&timestamp_field).unwrap(),
converted_map,
crate::SchemaDataType::map(crate::SchemaTypeMap::new(
Box::new(crate::SchemaDataType::primitive("byte".to_string())),
Box::new(crate::SchemaDataType::primitive("binary".to_string())),
Expand Down

0 comments on commit 17c9b2a

Please sign in to comment.