cloud-fan commented on a change in pull request #28840:
URL: https://github.com/apache/spark/pull/28840#discussion_r441481923
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
##########
@@ -516,3 +516,8 @@ case class CommentOnNamespace(child: LogicalPlan, comment:
String) extends Comma
case class CommentOnTable(child: LogicalPlan, comment: String) extends Command
{
override def children: Seq[LogicalPlan] = child :: Nil
}
+
+/**
+ * The logical plan of the REFRESH FUNCTION command that works for v2 catalogs.
+ */
+case class RefreshFunction(func: Seq[String]) extends Command
Review comment:
Can we create a `UnresolvedFunc`, similar to `UnresolvedTable`?
The key point is to do the resolution in the analyzer, not at runtime in
`RefreshFunctionCommand.run`.
----------------------------------------------------------------
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]