This is an automated email from the ASF dual-hosted git repository.
ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new e3b6b10c7076 [SPARK-55671][PYTHON][TESTS] Add zstandard requirement to
connect requirement
e3b6b10c7076 is described below
commit e3b6b10c70769bafccda58ac8a2b086cc25a6e2d
Author: Tian Gao <[email protected]>
AuthorDate: Thu Feb 26 10:36:35 2026 +0800
[SPARK-55671][PYTHON][TESTS] Add zstandard requirement to connect
requirement
### What changes were proposed in this pull request?
Add `zstandard` check for connect test requirement check.
### Why are the changes needed?
`zstandard` is now a requirement for connect so we might as well check it
for connect tests.
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
CI.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #54464 from gaogaotiantian/add-zstandard.
Authored-by: Tian Gao <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
---
python/pyspark/testing/utils.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/python/pyspark/testing/utils.py b/python/pyspark/testing/utils.py
index bc58873e384b..35670d910b54 100644
--- a/python/pyspark/testing/utils.py
+++ b/python/pyspark/testing/utils.py
@@ -101,6 +101,9 @@ grpc_requirement_message = "" if have_grpc else "No module
named 'grpc'"
have_grpc_status = have_package("grpc_status")
grpc_status_requirement_message = "" if have_grpc_status else "No module named
'grpc_status'"
+have_zstandard = have_package("zstandard")
+zstandard_requirement_message = "" if have_zstandard else "No module named
'zstandard'"
+
googleapis_common_protos_requirement_message = ""
@@ -140,6 +143,7 @@ connect_requirement_message = (
or grpc_requirement_message
or googleapis_common_protos_requirement_message
or grpc_status_requirement_message
+ or zstandard_requirement_message
)
should_test_connect = not connect_requirement_message
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]