You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "hvanhovell (via GitHub)" <gi...@apache.org> on 2024/08/05 17:14:40 UTC
Re: [PR] [SPARK-49004][CONNECT] Use separate registry for Column API internal functions [spark]
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-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org