Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
himadripal committed Nov 19, 2024
1 parent b8bf29e commit d4ee388
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ object CometCast {
Unsupported
}
case (from: DecimalType, to: DecimalType) =>
if (to.precision < from.precision)
Incompatible() // datafusion looses precision https://github.com/apache/datafusion/issues/13492
else Compatible()
if (to.precision < from.precision) {
// https://github.com/apache/datafusion/issues/13492
Incompatible()
} else {
Compatible()
}
case (DataTypes.StringType, _) =>
canCastFromString(toType, timeZoneId, evalMode)
case (_, DataTypes.StringType) =>
Expand Down

0 comments on commit d4ee388

Please sign in to comment.