hvanhovell commented on code in PR #47572: URL: https://github.com/apache/spark/pull/47572#discussion_r1704380657
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala: ########## @@ -2338,10 +2342,12 @@ class Analyzer(override val catalogManager: CatalogManager) extends RuleExecutor private def resolveBuiltinOrTempFunction( name: Seq[String], arguments: Seq[Expression], - u: Option[UnresolvedFunction]): Option[Expression] = { - if (name.length == 1) { + u: UnresolvedFunction): Option[Expression] = { + if (name.size == 1 && u.isInternal) { + Option(FunctionRegistry.internal.lookupFunction(FunctionIdentifier(name.head), arguments)) Review Comment: When we use the internal namespace we use that, and we do not fallback to something else. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org