Skip to content

Commit

Permalink
Fix timestamp serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Sep 26, 2023
1 parent 1fd22c5 commit 535a719
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arrow-json/src/reader/timestamp_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ where

builder.append_value(value)
}
TapeElement::I32(v) => builder.append_value(v as i64),
TapeElement::I64(high) => match tape.get(p + 1) {
TapeElement::I32(low) => {
builder.append_value((high as i64) << 32 | low as i64)
}
_ => unreachable!(),
},
_ => return Err(tape.error(*p, "primitive")),
}
}
Expand Down

0 comments on commit 535a719

Please sign in to comment.