Github user mgaido91 commented on a diff in the pull request: https://github.com/apache/spark/pull/19730#discussion_r150419908 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala --- @@ -1015,7 +1015,9 @@ case class Cast(child: Expression, dataType: DataType, timeZoneId: Option[String } val rowClass = classOf[GenericInternalRow].getName val result = ctx.freshName("result") + ctx.addMutableState(s"$rowClass", result, "") val tmpRow = ctx.freshName("tmpRow") + ctx.addMutableState("InternalRow", tmpRow, "") --- End diff -- ditto
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org