We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e593089 commit 61bbadaCopy full SHA for 61bbada
1 file changed
native/spark-expr/src/conversion_funcs/numeric.rs
@@ -977,7 +977,8 @@ pub(crate) fn cast_decimal_to_timestamp(
977
builder.append_null();
978
} else {
979
let value = arr.value(i);
980
- // Note: spark's big decimal
+ // Note: spark's big decimal truncates to
981
+ // long value and does not throw error (in all leval modes)
982
let value_256 = i256::from_i128(value);
983
let micros_256 = value_256 * i256::from_i128(MICROS_PER_SECOND as i128);
984
let ts = micros_256 / i256::from_i128(scale_factor);
0 commit comments