[
https://issues.apache.org/jira/browse/SPARK-46178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hyukjin Kwon resolved SPARK-46178.
----------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 44087
[https://github.com/apache/spark/pull/44087]
> 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
> Fix For: 4.0.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]