HyukjinKwon commented on code in PR #37067:
URL: https://github.com/apache/spark/pull/37067#discussion_r912660637
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala:
##########
@@ -1916,12 +1935,11 @@ case class ValidateExternalType(child: Expression,
expected: DataType, lenient:
}
}
- override def eval(input: InternalRow): Any = {
- val result = child.eval(input)
- if (checkType(result)) {
- result
+ override def nullSafeEval(input: Any): Any = {
Review Comment:
This is also matched with the codegen side if I am not mistaken.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]