yeshengm commented on a change in pull request #24947: [SPARK-28143][SQL]IN
expression missing attribute should throw analysis exception
URL: https://github.com/apache/spark/pull/24947#discussion_r296825043
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
##########
@@ -581,7 +581,9 @@ object FunctionRegistry {
val params = Seq.fill(expressions.size)(classOf[Expression])
val f = constructors.find(_.getParameterTypes.toSeq ==
params).getOrElse {
val validParametersCount = constructors
- .filter(_.getParameterTypes.forall(_ == classOf[Expression]))
+ .filter(_.getParameterTypes.forall { t =>
+ t == classOf[Expression] || t == classOf[Seq[Expression]]
Review comment:
Second that.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]