Skip to content

Commit 61bbada

Browse files
committed
fix_review_comments
1 parent e593089 commit 61bbada

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

native/spark-expr/src/conversion_funcs/numeric.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ pub(crate) fn cast_decimal_to_timestamp(
977977
builder.append_null();
978978
} else {
979979
let value = arr.value(i);
980-
// Note: spark's big decimal
980+
// Note: spark's big decimal truncates to
981+
// long value and does not throw error (in all leval modes)
981982
let value_256 = i256::from_i128(value);
982983
let micros_256 = value_256 * i256::from_i128(MICROS_PER_SECOND as i128);
983984
let ts = micros_256 / i256::from_i128(scale_factor);

0 commit comments

Comments
 (0)