You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: ceil and floor works correctly for Decimal128 (#3848)
## Which issue does this PR close?
Closes#1729
## Rationale for this change
#1729 was opened due to PR #1728 (comment #1728 (comment))
Later #3675 disabled `ceil` and `floor` for decimals.
However, the rust test cases added in #1728 are incorrect in my opinion. When spark `ceil`/`floor`, Spark changes precision and scale. And later result precision and scale are set at https://github.com/apache/datafusion-comet/blob/main/native/spark-expr/src/math_funcs/ceil.rs#L51
The output of `decimal_ceil_f` is intermediate result. Therefore. `decimal_ceil_f` is correct and the expected values of rust test cases are incorrect.
## What changes are included in this PR?
Corrected the rust test cases. Enabled `ceil` and `floor` again
## How are these changes tested?
0 commit comments