You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "lakechd (via GitHub)" <gi...@apache.org> on 2026/04/16 20:18:18 UTC
Re: [PR] [WIP][SPARK-56514][SQL] Allow catalog Table objects to be passed directly to read.table() and writeTo() [spark]
lakechd commented on code in PR #55375:
URL: https://github.com/apache/spark/pull/55375#discussion_r3096122087
##########
python/pyspark/sql/connect/readwriter.py:
##########
@@ -149,7 +150,11 @@ def _df(self, plan: LogicalPlan) -> "DataFrame":
return DataFrame(plan, self._client)
- def table(self, tableName: str) -> "DataFrame":
+ def table(self, tableName: Union[str, "Table"]) -> "DataFrame":
+ from pyspark.sql.catalog import Table
+
+ if isinstance(tableName, Table):
Review Comment:
what is the estimated size for catalog table? will it impact performance?
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org