Skip to content

Commit 79f6341

Browse files
author
Arttu Voutilainen
committed
fix precision exponent
1 parent 94ee836 commit 79f6341

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datafusion/substrait/src/logical_plan/consumer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2326,7 +2326,7 @@ fn from_substrait_literal(
23262326
p
23272327
);
23282328
}
2329-
let nanos = *subseconds * i64::pow(10, (*p - 9) as u32);
2329+
let nanos = *subseconds * i64::pow(10, (9 - p) as u32);
23302330
ScalarValue::new_interval_mdn(
23312331
*years * 12 + months,
23322332
*days,

0 commit comments

Comments
 (0)