AngersZhuuuu commented on a change in pull request #35207:
URL: https://github.com/apache/spark/pull/35207#discussion_r785244757
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/objects/objects.scala
##########
@@ -50,6 +50,8 @@ trait InvokeLike extends Expression with NonSQLExpression
with ImplicitCastInput
def propagateNull: Boolean
+ override def foldable: Boolean =
+ children.forall(_.foldable) && !dataType.isInstanceOf[ObjectType]
Review comment:
> quick question: why do we exclude `ObjectType`?
Since current Literal.create() not support ObjectType. I will do this later
--
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]