Github user srowen commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21770#discussion_r202548522
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
 ---
    @@ -890,7 +890,7 @@ case class Cast(child: Expression, dataType: DataType, 
timeZoneId: Option[String
         case StringType =>
           val intOpt = ctx.freshName("intOpt")
           (c, evPrim, evNull) => s"""
    -        scala.Option<Integer> $intOpt =
    +        scala.Option<Object> $intOpt =
    --- End diff --
    
    Out of curiosity, why is this change needed? Is it because it's really a 
scala int that's returned?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to