File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1397,9 +1397,7 @@ abstract class CastBase extends UnaryExpression with TimeZoneAwareExpression wit
13971397 """
13981398 }
13991399
1400- private [this ] def castToByteCode (
1401- from : DataType ,
1402- ctx : CodegenContext ): CastFunction = from match {
1400+ private [this ] def castToByteCode (from : DataType , ctx : CodegenContext ): CastFunction = from match {
14031401 case StringType =>
14041402 val wrapper = ctx.freshVariable(" intWrapper" , classOf [UTF8String .IntWrapper ])
14051403 (c, evPrim, evNull) =>
@@ -1473,9 +1471,7 @@ abstract class CastBase extends UnaryExpression with TimeZoneAwareExpression wit
14731471 (c, evPrim, evNull) => code " $evPrim = (short) $c; "
14741472 }
14751473
1476- private [this ] def castToIntCode (
1477- from : DataType ,
1478- ctx : CodegenContext ): CastFunction = from match {
1474+ private [this ] def castToIntCode (from : DataType , ctx : CodegenContext ): CastFunction = from match {
14791475 case StringType =>
14801476 val wrapper = ctx.freshVariable(" intWrapper" , classOf [UTF8String .IntWrapper ])
14811477 (c, evPrim, evNull) =>
@@ -1510,9 +1506,7 @@ abstract class CastBase extends UnaryExpression with TimeZoneAwareExpression wit
15101506 (c, evPrim, evNull) => code " $evPrim = (int) $c; "
15111507 }
15121508
1513- private [this ] def castToLongCode (
1514- from : DataType ,
1515- ctx : CodegenContext ): CastFunction = from match {
1509+ private [this ] def castToLongCode (from : DataType , ctx : CodegenContext ): CastFunction = from match {
15161510 case StringType =>
15171511 val wrapper = ctx.freshVariable(" longWrapper" , classOf [UTF8String .LongWrapper ])
15181512 (c, evPrim, evNull) =>
You can’t perform that action at this time.
0 commit comments