AngersZhuuuu commented on a change in pull request #35207:
URL: https://github.com/apache/spark/pull/35207#discussion_r785249643
##########
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:
> Hm, then we can just remove `&& !dataType.isInstanceOf[ObjectType]` no?
Hmmm, you mean we can just remove `&& !dataType.isInstanceOf[ObjectType]`
later after enable `Literal.create()` support ObjectType? Plan to do like this.
--
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]