Skip to content

Commit

Permalink
Further format
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Oct 19, 2023
1 parent cab2af4 commit 873e0d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions arrow-integration-test/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ pub fn field_from_json(json: &serde_json::Value) -> Result<Field> {
DataType::Struct(map_fields) if map_fields.len() == 2 => {
DataType::Map(Arc::new(child), keys_sorted)
}
t => return Err(ArrowError::ParseError(format!(
t => {
return Err(ArrowError::ParseError(format!(
"Map children should be a struct with 2 fields, found {t:?}"
))),
)))
}
}
}
Some(_) => {
Expand Down
6 changes: 4 additions & 2 deletions parquet/src/schema/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,12 @@ impl<'a> Parser<'a> {
));
}
}
_ => return Err(general_err!(
_ => {
return Err(general_err!(
"Logical type Integer cannot be used with physical type {}",
physical_type
)),
))
}
}
if let Some(",") = self.tokenizer.next() {
let is_signed = parse_bool(
Expand Down

0 comments on commit 873e0d1

Please sign in to comment.