HyukjinKwon commented on code in PR #36985:
URL: https://github.com/apache/spark/pull/36985#discussion_r913377603


##########
python/pyspark/sql/catalog.py:
##########
@@ -164,6 +169,47 @@ def listTables(self, dbName: Optional[str] = None) -> 
List[Table]:
             )
         return tables
 
+    def getTable(self, tableName: str) -> Table:
+        """Get the table or view with the specified name. This table can be a 
temporary view or a
+        table/view. This throws an AnalysisException when no Table can be 
found.
+
+        .. versionadded:: 3.4.0
+
+        Parameters
+        ----------
+        tableName : str
+                    name of the table to check existence.

Review Comment:
   nit: Indentation here seems weird.



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

Reply via email to