Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/22259#discussion_r214603299
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ScalaUDF.scala
---
@@ -47,7 +48,8 @@ case class ScalaUDF(
inputTypes: Seq[DataType] = Nil,
udfName: Option[String] = None,
nullable: Boolean = true,
- udfDeterministic: Boolean = true)
+ udfDeterministic: Boolean = true,
+ nullableTypes: Seq[Boolean] = Nil)
--- End diff --
We put the assert in the rule `HandleNullInputsForUDF`.
can we merge `inputTypes` and `nullableTypes` here so that we don't need to
worry about it any more? cc @srowen
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]