You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/12/06 05:37:22 UTC

[GitHub] [spark] dongjoon-hyun commented on a diff in pull request #38541: [SPARK-41034][CONNECT][PYTHON] Connect DataFrame should require a RemoteSparkSession

dongjoon-hyun commented on code in PR #38541:
URL: https://github.com/apache/spark/pull/38541#discussion_r1040495359


##########
python/pyspark/testing/connectutils.py:
##########
@@ -91,6 +92,10 @@ def _session_range(
     def _session_sql(cls, query: str) -> "DataFrame":
         return DataFrame.withPlan(SQL(query), cls.connect)  # type: ignore
 
+    @classmethod
+    def _with_plan(cls, plan: LogicalPlan) -> "DataFrame":

Review Comment:
   Hi, @amaliujia . Unfortunately, this seems to break downstream CIs again by introducing `pandas` dependency back. In this PR, line 27 seems to be insufficient because `_with_plan` is a `classmethod`.
   ```
   if have_pandas:
       ...
       from pyspark.sql.connect.plan import LogicalPlan
   ```



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