HyukjinKwon commented on a change in pull request #33481:
URL: https://github.com/apache/spark/pull/33481#discussion_r675280937
##########
File path: python/pyspark/sql/catalog.py
##########
@@ -132,6 +132,30 @@ def listFunctions(self, dbName=None):
isTemporary=jfunction.isTemporary()))
return functions
+ def functionExists(self, functionName, dbName=None):
+ """Check if the function with the specified name exists.
+ This can either be a temporary function or a function.
+
+ .. versionadded:: 3.3.0
+
+ Parameters
+ ----------
+ functionName : str
+ name of the function to check existence
+ dbName : str, optional
+ name of the database to check function existence in.
+ If no database is specified, the current database is used
+
+ Returns
+ -------
+ bool
+ Indicating whether the function exists
+
Review comment:
@dominikgehl since we're here, could we add some simple examples here as
well?
--
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]