sunchao commented on a change in pull request #32082:
URL: https://github.com/apache/spark/pull/32082#discussion_r617990303
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
##########
@@ -1858,7 +1845,27 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with
SQLConfHelper with Logg
}
}
+ protected def getFunctionMultiparts(ctx: FunctionNameContext): Seq[String] =
{
+ if (ctx.qualifiedName != null) {
+ ctx.qualifiedName().identifier().asScala.map(_.getText).toSeq
+ } else {
+ Seq(ctx.getText)
+ }
+ }
+
/**
+ * Create a function database (optional) and name pair.
+ */
+ private def visitFunctionName(ctx: ParserRuleContext, texts: Seq[String]):
FunctionIdentifier = {
Review comment:
Oops let me move it back.
--
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]