This is an automated email from the ASF dual-hosted git repository.
dongjoon-hyun pushed a commit to branch branch-4.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.2 by this push:
new a66e3fec166d [SPARK-58033][PYTHON][DOC] Fix `py4j` version requirement
in PySpark installation guide
a66e3fec166d is described below
commit a66e3fec166df3a6d3873ee4acad617840f8ca7b
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Wed Jul 8 09:07:08 2026 -0700
[SPARK-58033][PYTHON][DOC] Fix `py4j` version requirement in PySpark
installation guide
### What changes were proposed in this pull request?
Fix the `py4j` version requirement in the PySpark installation guide from
`>=0.10.9.9` to `>=0.10.9.7,<0.10.9.10`, matching
`python/packaging/classic/setup.py`.
### Why are the changes needed?
SPARK-54015 relaxed the requirement in `setup.py` at Apache Spark 4.1.0,
4.0.2, and 3.5.8 but left the doc stale.
- https://github.com/apache/spark/pull/52721
https://github.com/apache/spark/blob/155adf7047bf7c0014cf35cef0c454d671287af7/python/packaging/classic/setup.py#L360
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Fable 5
Closes #57116 from dongjoon-hyun/dongjoon/upbeat-curran-8efaf1.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 7e8d59458943263ffd96474933afb8097af97bd9)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
python/docs/source/getting_started/install.rst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python/docs/source/getting_started/install.rst
b/python/docs/source/getting_started/install.rst
index 1ff1587035c9..064785b9b299 100644
--- a/python/docs/source/getting_started/install.rst
+++ b/python/docs/source/getting_started/install.rst
@@ -208,7 +208,7 @@ PySpark requires the following dependencies.
========================== =========================
=============================
Package Supported version Note
========================== =========================
=============================
-`py4j` >=0.10.9.9 Required to interact with
JVM
+`py4j` >=0.10.9.7,<0.10.9.10 Required to interact with
JVM
========================== =========================
=============================
Additional libraries that enhance functionality but are not included in the
installation packages:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]