Skip to content

Commit 7d0faa6

Browse files
committed
Fix
1 parent c7dbeef commit 7d0faa6

File tree

1 file changed

+3
-9
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+3
-9
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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) =>

0 commit comments

Comments
 (0)