-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SPARK-46812][PYTHON][TESTS][FOLLOWUP] Check should_test_connect and pyarrow to skip tests #45880
Conversation
…pyarrow to skip tests
|
||
|
||
@unittest.skipIf(not have_pandas, pandas_requirement_message) | ||
@unittest.skipIf(not should_test_connect, connect_requirement_message) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should_test_connect
covers more edge cases than have_pandas
.
@@ -72,7 +78,10 @@ def assert_request_contents(exec_reqs, task_reqs): | |||
assert_request_contents(rp3.executorResources, rp3.taskResources) | |||
sc.stop() | |||
|
|||
@unittest.skipIf(not have_pandas, pandas_requirement_message) | |||
@unittest.skipIf( | |||
not have_pandas or not have_pyarrow, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test has df.mapInArrow(lambda x: x, df.schema, False, rp).collect()
too.
LGTM thank you! |
Thank you, @xinrong-meng ! |
Merged to master. |
For the record, it's green now. |
What changes were proposed in this pull request?
This is a follow-up of SPARK-46812 to skip the tests more robustly and to recover PyPy CIs.
Why are the changes needed?
should_test_connect
covers more edge cases thanhave_pandas
.test_resources.py
has Arrow usage too.spark/python/pyspark/resource/tests/test_resources.py
Line 85 in 25fc67f
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Manually tests with
pandas
and withoutpyarrow
.Was this patch authored or co-authored using generative AI tooling?
No.