Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/19730#discussion_r151477316
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
---
@@ -1039,13 +1039,19 @@ case class Cast(child: Expression, dataType:
DataType, timeZoneId: Option[String
}
}
"""
- }.mkString("\n")
+ }
+ val fieldsEvalCodes = if (ctx.INPUT_ROW != null && ctx.currentVars ==
null) {
+ ctx.splitExpressions(fieldsEvalCode, "castStruct",
+ ("InternalRow", ctx.INPUT_ROW) :: (rowClass, result) ::
("InternalRow", tmpRow) :: Nil)
--- End diff --
how about inner struct? We also need to pass in the `ctx.INPUT_ROW`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]