cloud-fan commented on a change in pull request #32082:
URL: https://github.com/apache/spark/pull/32082#discussion_r620440838
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
##########
@@ -2016,88 +2029,210 @@ class Analyzer(override val catalogManager:
CatalogManager)
name, other.getClass.getCanonicalName)
}
}
- case u @ UnresolvedFunction(funcId, arguments, isDistinct, filter,
ignoreNulls) =>
+
+ case u @ UnresolvedFunction(AsFunctionIdentifier(ident), arguments,
Review comment:
ditto, it clearer to use if else here
```
case u @ UnresolvedFunction(nameParts, ...) =>
val CatalogAndIdentifier(catalog, v2Ident) = nameParts
def lookupPersistentFunction(): Expression = if
(CatalogV2Util.isSessionCatalog(catalog)) {
processFunctionExpr(v1SessionCatalog.lookupFunction ...
} else {
v2 code path
}
if (nameParts.length == 1) {
v1SessionCatalog.lookupBuiltinOrTempFunction....map(...).getOrElse(lookupPersistentFunction)
} else {
lookupPersistentFunction
}
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]