[ https://issues.apache.org/jira/browse/SPARK-46178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon reassigned SPARK-46178: ------------------------------------ Assignee: Hyukjin Kwon > Move MockDF under PlanOnlyTestFixture > ------------------------------------- > > Key: SPARK-46178 > URL: https://issues.apache.org/jira/browse/SPARK-46178 > Project: Spark > Issue Type: Test > Components: Connect, PySpark, Tests > Affects Versions: 4.0.0 > Reporter: Hyukjin Kwon > Assignee: Hyukjin Kwon > Priority: Minor > Labels: pull-request-available > > When you don't have the dependencies for Spark Connect, and you run the tests: > {code} > ./python/run-tests --python-executables=python3 --testnames > 'pyspark.pandas.tests.connect.test_parity_ops_on_diff_frames_groupby_rolling' > {code} > it shows the error as below: > {code} > File > "/.../spark/python/pyspark/pandas/tests/connect/test_parity_ops_on_diff_frames_groupby_rolling.py", > line 22, in <module> > from pyspark.testing.connectutils import ReusedConnectTestCase > File "/.../spark/python/pyspark/testing/connectutils.py", line 92, in > <module> > class PlanOnlyTestFixture(unittest.TestCase, PySparkErrorTestUtils): > File "/.../spark/python/pyspark/testing/connectutils.py", line 93, in > PlanOnlyTestFixture > class MockDF(DataFrame): > ^^^^^^^^^ > NameError: name 'DataFrame' is not defined > {code} > which isn't actionable. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org