MaxGekk commented on code in PR #39095:
URL: https://github.com/apache/spark/pull/39095#discussion_r1053907248
##########
sql/core/src/main/scala/org/apache/spark/sql/internal/CatalogImpl.scala:
##########
@@ -274,7 +274,10 @@ class CatalogImpl(sparkSession: SparkSession) extends
Catalog {
className = className,
isTemporary = true)
- case _ => throw QueryCompilationErrors.noSuchFunctionError(ident, plan)
+ case _ =>
+ val catalogPath = (currentCatalog +:
+
sparkSession.sessionState.catalogManager.currentNamespace).mkString(".")
+ throw QueryCompilationErrors.unresolvedRoutineError(ident,
Seq(catalogPath), plan.origin)
Review Comment:
> analyzer.checkAnalysis(other)
We must return a `Function` at the end. Do you propose to construct a fake
`Function` or throw some exception (which one?)?
--
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]