Skip to content

Commit

Permalink
Fix wording in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Jun 20, 2024
1 parent 28e911b commit 70fef3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/array_decoder/timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ fn decimal128_decoder(
let seconds = ts.div_euclid(NANOSECONDS_IN_SECOND);
let nanoseconds = ts.rem_euclid(NANOSECONDS_IN_SECOND);

// The addition panics in case of overflow, because chrono stores
// dates in an i32
// The addition may panic, because chrono stores dates in an i32,
// which can be overflowed with an i64 of seconds.
let dt = (writer_tz.timestamp_nanos(0)
+ TimeDelta::new(seconds as i64, nanoseconds as u32)
.expect("TimeDelta duration out of bound"))
Expand Down

0 comments on commit 70fef3f

Please sign in to comment.