chore(columnq): readability fixups in json (#256)

This commit is contained in:
Ryan Russell 2023-01-29 12:43:39 -05:00 committed by GitHub
parent 3e55a29b87
commit 97e6a4cd8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ fn json_vec_to_partition(
);
let mut batches = vec![];
{
// enclose values_iter in its own scope so it won't brrow schema_ref til end of this
// enclose values_iter in its own scope so it won't borrow schema_ref til end of this
// function
let mut values_iter: Box<dyn Iterator<Item = arrow::error::Result<Value>>> =
if array_encoded {
@ -132,12 +132,12 @@ async fn to_partitions(
match &pointer {
Some(p) => {
return Err(ColumnQError::LoadJson(format!(
"{p} points to an emtpy array"
"{p} points to an empty array"
)));
}
None => {
return Err(ColumnQError::LoadJson(
"JSON data is an emtpy array".to_string(),
"JSON data is an empty array".to_string(),
));
}
}