HyukjinKwon commented on a change in pull request #33388:
URL: https://github.com/apache/spark/pull/33388#discussion_r671132054
##########
File path: python/pyspark/sql/catalog.py
##########
@@ -133,6 +133,17 @@ def listColumns(self, tableName, dbName=None):
isBucket=jcolumn.isBucket()))
return columns
+ @since(3.2)
+ def tableExists(self, tableName, dbName=None):
+ """Check if the table or view with the specified name exists.
Review comment:
I think you can remove `@since(3.2)` and add `.. versionadded:: 2.0.0`
instead because `@since` doesn't work well with NumPy documentation style.
I think we should have a proper doc for each parameter and return value.
(e.g., see
https://spark.apache.org/docs/latest/api/python/_modules/pyspark/sql/dataframe.html#DataFrame.head)
--
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]