Skip to content

Commit

Permalink
Fix unreachable code warnings in GpuCast (NVIDIA#3228)
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Lowe <[email protected]>
Signed-off-by: Raza Jafri <[email protected]>
  • Loading branch information
jlowe authored and razajafri committed Aug 23, 2021
1 parent e2f11ad commit 729f250
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions sql-plugin/src/main/scala/com/nvidia/spark/rapids/GpuCast.scala
Original file line number Diff line number Diff line change
Expand Up @@ -478,19 +478,6 @@ object GpuCast extends Arm {
case (ShortType | IntegerType | LongType | ByteType | StringType, BinaryType) =>
input.asByteList(true)

case (ShortType | IntegerType | LongType, dt: DecimalType) =>
withResource(input.copyToColumnVector()) { inputVector =>
castIntegralsToDecimal(inputVector, dt, ansiMode)
}

case (FloatType | DoubleType, dt: DecimalType) =>
withResource(input.copyToColumnVector()) { inputVector =>
castFloatsToDecimal(inputVector, dt, ansiMode)
}

case (from: DecimalType, to: DecimalType) =>
castDecimalToDecimal(input.copyToColumnVector(), from, to, ansiMode)

case (_: DecimalType, StringType) =>
input.castTo(DType.STRING)

Expand Down

0 comments on commit 729f250

Please sign in to comment.