ulysses-you commented on a change in pull request #28840:
URL: https://github.com/apache/spark/pull/28840#discussion_r442706595



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/connector/catalog/LookupCatalog.scala
##########
@@ -155,4 +155,37 @@ private[sql] trait LookupCatalog extends Logging {
         None
     }
   }
+
+  /**
+   * Extract catalog and function identifier from a multi-part name with the 
current catalog if
+   * needed.
+   *
+   * Note that: function is only supported in v1 catalog.
+   */
+  object CatalogAndFunctionIdentifier {

Review comment:
       After some thought. We have to modify the 
`parseSessionCatalogFunctionIdentifier`
   
   * since it used by v2, should return both `CatalogPlugin` and 
`FunctionIdentifier`
   * during resolve `UnresolvedFunc`, it's hard to decide the sql param. 
Actually the sql param is not important.
   
   And after this, we also have to update the existing code in 
`ResolveSessionCatalog`. Maybe it's better to do the refactor ?




----------------------------------------------------------------
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]

Reply via email to