huaxingao commented on a change in pull request #34121:
URL: https://github.com/apache/spark/pull/34121#discussion_r722788805
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -4469,13 +4469,23 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef]
with SQLConfHelper with Logg
}
val functionIdentifier = visitMultipartIdentifier(ctx.multipartIdentifier)
- CreateFunctionStatement(
- functionIdentifier,
- string(ctx.className),
- resources.toSeq,
- ctx.TEMPORARY != null,
- ctx.EXISTS != null,
- ctx.REPLACE != null)
+ if (ctx.TEMPORARY != null) {
+ CreateTempFunction(
+ functionIdentifier,
+ string(ctx.className),
+ resources.toSeq,
+ ctx.EXISTS != null,
+ ctx.REPLACE != null)
+ } else {
+ CreateFunction(
+ UnresolvedDBObjectName(
+ functionIdentifier,
+ isNamespace = true),
Review comment:
Never mind what I said earlier. I will give it one more try.
--
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]