Ngone51 commented on a change in pull request #29106:
URL: https://github.com/apache/spark/pull/29106#discussion_r768322245
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ScalaUDF.scala
##########
@@ -59,6 +59,12 @@ case class ScalaUDF(
override def toString: String =
s"${udfName.getOrElse("UDF")}(${children.mkString(", ")})"
+ override lazy val canonicalized: Expression = {
+ // SPARK-32307: `ExpressionEncoder` can't be canonicalized, and
technically we don't
+ // need it to identify a `ScalaUDF`.
+ Canonicalize.execute(copy(children = children.map(_.canonicalized),
inputEncoders = Nil))
Review comment:
Make sense. I'll do a follow-up.
--
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]