Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
b41sh committed Dec 7, 2021
1 parent cf8402d commit b628d49
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions integration-testing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,6 @@ fn array_from_json(
let months = v.get("months").unwrap();
let days = v.get("days").unwrap();
let nanoseconds = v.get("nanoseconds").unwrap();
println!(
"months={:?} days={:?} nanos={:?}",
months, days, nanoseconds
);
match (months, days, nanoseconds) {
(
Value::Number(months),
Expand All @@ -313,7 +309,6 @@ fn array_from_json(
<< 64
| ((days as i128) & 0xFFFFFFFF) << 32
| ((months as i128) & 0xFFFFFFFF);
println!("months_days_ns={:?}", months_days_ns);
months_days_ns
}
(_, _, _) => {
Expand All @@ -326,10 +321,8 @@ fn array_from_json(
_ => b.append_null(),
}?;
}
let array = Arc::new(b.finish()) as ArrayRef;
arrow::compute::cast(&array, field.data_type())
Ok(Arc::new(b.finish()))
}

DataType::Float32 => {
let mut b = Float32Builder::new(json_col.count);
for (is_valid, value) in json_col
Expand Down

0 comments on commit b628d49

Please sign in to comment.