MaxGekk commented on code in PR #39095:
URL: https://github.com/apache/spark/pull/39095#discussion_r1052159400
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala:
##########
@@ -227,7 +227,7 @@ trait SimpleFunctionRegistryBase[T] extends
FunctionRegistryBase[T] with Logging
override def lookupFunction(name: FunctionIdentifier, children:
Seq[Expression]): T = {
val func = synchronized {
functionBuilders.get(normalizeFuncName(name)).map(_._2).getOrElse {
- throw QueryCompilationErrors.functionUndefinedError(name)
+ throw QueryCompilationErrors.unresolvedRoutineError(name,
Seq("system.builtin"))
Review Comment:
The principles are hard-coded in place. I just extracted the actual search
path from the code.
--
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]