Skip to content

Commit 647ad01

Browse files
Update spark/src/main/scala/org/apache/comet/expressions/CometCast.scala
Co-authored-by: Andy Grove <agrove@apache.org>
1 parent d4ee388 commit 647ad01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spark/src/main/scala/org/apache/comet/expressions/CometCast.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ object CometCast {
7373
case (from: DecimalType, to: DecimalType) =>
7474
if (to.precision < from.precision) {
7575
// https://github.com/apache/datafusion/issues/13492
76-
Incompatible()
76+
Incompatible(Some("Casting to smaller precision is not supported"))
7777
} else {
7878
Compatible()
7979
}

0 commit comments

Comments
 (0)