cloud-fan commented on code in PR #39095:
URL: https://github.com/apache/spark/pull/39095#discussion_r1053447357
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala:
##########
@@ -2185,7 +2185,11 @@ class Analyzer(override val catalogManager:
CatalogManager)
externalFunctionNameSet.add(fullName)
f
} else {
- throw QueryCompilationErrors.noSuchFunctionError(nameParts, f,
Some(fullName))
+ val catalogPath = (catalog.name() +:
catalog.defaultNamespace()).mkString(".")
Review Comment:
I think we should use the current database, not the catalog default
namespace. If you look at `CatalogAndIdentifier`, the resolution code here does
check `catalogManager.currentNamespace`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]