Skip to content

[SPARK-56889][PYTHON][INFRA] Drop Python 3.10 Support#55914

Closed
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56889
Closed

[SPARK-56889][PYTHON][INFRA] Drop Python 3.10 Support#55914
dongjoon-hyun wants to merge 1 commit into
apache:masterfrom
dongjoon-hyun:SPARK-56889

Conversation

@dongjoon-hyun
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun commented May 15, 2026

What changes were proposed in this pull request?

This PR drops Python 3.10 support at Apache Spark 4.3.0.

For the record, we have been moved to Python 3.11 mainly since Apache Spark 4.0.0.

Why are the changes needed?

Python 3.10 reaches end-of-life in October 2026 before Apache Spark 4.3.0 release. Dropping it on master/branch-4.x lets PySpark 4.3+ rely on Python 3.11+ language features.

Does this PR introduce any user-facing change?

Yes. Installing PySpark from master on Python 3.10 will fail with Requires-Python: >=3.11. Released versions are unaffected.

How was this patch tested?

Existing CI (build_python_3.11.yml through build_python_3.14*.yml, build_python_minimum.yml, build_python_ps_minimum.yml).

Was this patch authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.7)

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Could you review this PR, @LuciferYang ? This is for Apache Spark 4.3.

Copy link
Copy Markdown
Contributor

@LuciferYang LuciferYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM

@dongjoon-hyun
Copy link
Copy Markdown
Member Author

Thank you, @LuciferYang ~

Merged to master/4.x.

dongjoon-hyun added a commit that referenced this pull request May 16, 2026
This PR drops Python 3.10 support at `Apache Spark 4.3.0`.

For the record, we have been moved to `Python 3.11` mainly since Apache Spark 4.0.0.
- https://github.com/apache/spark/actions/workflows/build_branch40_python.yml (Python 3.11)

Python 3.10 reaches end-of-life in October 2026 before Apache Spark 4.3.0 release. Dropping it on `master/branch-4.x` lets PySpark 4.3+ rely on Python 3.11+ language features.

Yes. Installing PySpark from `master` on Python 3.10 will fail with `Requires-Python: >=3.11`. Released versions are unaffected.

Existing CI (`build_python_3.11.yml` through `build_python_3.14*.yml`, `build_python_minimum.yml`, `build_python_ps_minimum.yml`).

Generated-by: Claude Code (Opus 4.7)

Closes #55914 from dongjoon-hyun/SPARK-56889.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 0a0d31b)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun dongjoon-hyun deleted the SPARK-56889 branch May 16, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants