diff --git a/spark/src/main/scala/org/apache/comet/expressions/CometCast.scala b/spark/src/main/scala/org/apache/comet/expressions/CometCast.scala index da37a6a50..859cb13be 100644 --- a/spark/src/main/scala/org/apache/comet/expressions/CometCast.scala +++ b/spark/src/main/scala/org/apache/comet/expressions/CometCast.scala @@ -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() }