Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/21537#discussion_r194961281
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
---
@@ -625,25 +625,23 @@ case class Cast(child: Expression, dataType:
DataType, timeZoneId: Option[String
val eval = child.genCode(ctx)
val nullSafeCast = nullSafeCastFunction(child.dataType, dataType, ctx)
- ev.copy(code =
+ ev.copy(code = eval.code +
code"""
--- End diff --
Oh. Yes.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]