Skip to content

Commit

Permalink
always cast between same type
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed May 1, 2024
1 parent 4e803cc commit d255879
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ object CometCast {
toType: DataType,
timeZoneId: Option[String],
evalMode: String): Boolean = {

if (fromType == toType) {
return true
}

(fromType, toType) match {
case (DataTypes.StringType, _) =>
canCastFromString(cast, toType)
Expand Down

0 comments on commit d255879

Please sign in to comment.