diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala index c723a018a6c53..e4bdb2903e356 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableOutputResolver.scala @@ -231,8 +231,7 @@ object TableOutputResolver { } private def canCauseCastOverflow(cast: AnsiCast): Boolean = { - containsIntegralOrDecimalType(cast.dataType) && - !Cast.canUpCast(cast.child.dataType, cast.dataType) + false } private def checkField(