We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4af96a1 commit 9ca1990Copy full SHA for 9ca1990
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
@@ -581,6 +581,9 @@ object FunctionRegistry {
581
val params = Seq.fill(expressions.size)(classOf[Expression])
582
val f = constructors.find(_.getParameterTypes.toSeq == params).getOrElse {
583
val validParametersCount = constructors
584
+ .filter(_.getParameterTypes.forall { t =>
585
+ t == classOf[Expression] || t == classOf[Seq[Expression]]
586
+ })
587
.map(_.getParameterCount).distinct.sorted
588
val expectedNumberOfParameters = if (validParametersCount.length == 1) {
589
validParametersCount.head.toString
0 commit comments