Skip to content

Commit

Permalink
fix arrow error
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Dec 1, 2023
1 parent b3603f9 commit 6c4deb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/src/array/arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ impl TryFrom<&arrow_array::LargeBinaryArray> for DecimalArray {
.map(|o| {
o.map(|s| {
let s = std::str::from_utf8(s)
.map_err(|_| ArrayError::FromArrow(format!("invalid decimal: {s:?}")))?;
.map_err(|_| ArrayError::from_arrow(format!("invalid decimal: {s:?}")))?;
s.parse()
.map_err(|_| ArrayError::FromArrow(format!("invalid decimal: {s:?}")))
.map_err(|_| ArrayError::from_arrow(format!("invalid decimal: {s:?}")))
})
.transpose()
})
Expand Down

0 comments on commit 6c4deb1

Please sign in to comment.