Skip to content

Commit

Permalink
Update spark/src/main/scala/org/apache/comet/expressions/CometCast.scala
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Grove <[email protected]>
  • Loading branch information
himadripal and andygrove authored Nov 21, 2024
1 parent d4ee388 commit 647ad01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ object CometCast {
case (from: DecimalType, to: DecimalType) =>
if (to.precision < from.precision) {
// https://github.com/apache/datafusion/issues/13492
Incompatible()
Incompatible(Some("Casting to smaller precision is not supported"))
} else {
Compatible()
}
Expand Down

0 comments on commit 647ad01

Please sign in to comment.