Skip to content

Commit cd1e061

Browse files
committed
rebase_main
1 parent 05e7e50 commit cd1e061

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,6 @@ object CometCast extends CometExpressionSerde[Cast] with CometExprShim {
354354
case _ => Unsupported(Some(s"Cast from DecimalType to $toType is not supported"))
355355
}
356356

357-
private def canCastToBinary(fromType: DataType): SupportLevel = fromType match {
358-
case DataTypes.ByteType | DataTypes.ShortType | DataTypes.IntegerType | DataTypes.LongType =>
359-
Compatible()
360-
case _ => Unsupported(Some(s"Cast from BinaryType to $fromType is not supported"))
361-
}
362-
363357
private def unsupported(fromType: DataType, toType: DataType): Unsupported = {
364358
Unsupported(Some(s"Cast from $fromType to $toType is not supported"))
365359
}

0 commit comments

Comments
 (0)