You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "ianmcook (via GitHub)" <gi...@apache.org> on 2024/04/23 18:31:42 UTC
Re: [PR] [SPARK-47365][PYTHON] Add _toArrow() DataFrame method to PySpark [spark]
ianmcook commented on code in PR #45481:
URL: https://github.com/apache/spark/pull/45481#discussion_r1576718516
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -1775,6 +1775,12 @@ def _to_table(self) -> Tuple["pa.Table", Optional[StructType]]:
assert table is not None
return (table, schema)
+ def _toArrow(self) -> "pa.Table":
+ table = self._to_table()[0]
+ return table
+
+ _toArrow.__doc__ = PySparkDataFrame._toArrow.__doc__
Review Comment:
@HyukjinKwon is this line no longer needed after https://github.com/apache/spark/pull/46129?
--
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