You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "bjornjorgensen (via GitHub)" <gi...@apache.org> on 2025/11/01 16:51:31 UTC
[PR] [WIP] Pandas 2 3 3 [spark]
bjornjorgensen opened a new pull request, #52828:
URL: https://github.com/apache/spark/pull/52828
<!--
Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://spark.apache.org/contributing.html
2. Ensure you have added or run the appropriate tests for your PR: https://spark.apache.org/developer-tools.html
3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][SPARK-XXXX] Your PR title ...'.
4. Be sure to keep the PR description updated to reflect all changes.
5. Please write your PR title to summarize what this PR proposes.
6. If possible, provide a concise example to reproduce the issue for a faster review.
7. If you want to add a new configuration, please read the guideline first for naming configurations in
'core/src/main/scala/org/apache/spark/internal/config/ConfigEntry.scala'.
8. If you want to add or modify an error type or message, please read the guideline first in
'common/utils/src/main/resources/error/README.md'.
-->
### What changes were proposed in this pull request?
<!--
Please clarify what changes you are proposing. The purpose of this section is to outline the changes and how this PR fixes the issue.
If possible, please consider writing useful notes for better and faster reviews in your PR. See the examples below.
1. If you refactor some codes with changing classes, showing the class hierarchy will help reviewers.
2. If you fix some SQL features, you can provide some references of other DBMSes.
3. If there is design documentation, please add the link.
4. If there is a discussion in the mailing list, please add the link.
-->
### Why are the changes needed?
<!--
Please clarify why the changes are needed. For instance,
1. If you propose a new API, clarify the use case for a new API.
2. If you fix a bug, you can clarify why it is a bug.
-->
### Does this PR introduce _any_ user-facing change?
<!--
Note that it means *any* user-facing change including all aspects such as new features, bug fixes, or other behavior changes. Documentation-only updates are not considered user-facing changes.
If yes, please clarify the previous behavior and the change this PR proposes - provide the console output, description and/or an example to show the behavior difference if possible.
If possible, please also clarify if this is a user-facing change compared to the released Spark versions or within the unreleased branches such as master.
If no, write 'No'.
-->
### How was this patch tested?
<!--
If tests were added, say they were added here. Please make sure to add some test cases that check the changes thoroughly including negative and positive cases if possible.
If it was tested in a way different from regular unit tests, please clarify how you tested step by step, ideally copy and paste-able, so that other reviewers can test and check, and descendants can verify in the future.
If tests were not added, please describe why they were not added and/or why it was difficult to add.
If benchmark tests were added, please run the benchmarks in GitHub Actions for the consistent environment, and the instructions could accord to: https://spark.apache.org/developer-tools.html#github-workflow-benchmarks.
-->
### Was this patch authored or co-authored using generative AI tooling?
<!--
If generative AI tooling has been used in the process of authoring this patch, please include the
phrase: 'Generated-by: ' followed by the name of the tool and its version.
If no, write 'No'.
Please refer to the [ASF Generative Tooling Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3482033743
Hi, @cloud-fan . FYI, it was split by @zhengruifeng recently at Apache Spark 4.0.0 via the following umbrella JIRA, SPARK-50294 `Refactor docker image for testing`.
<img width="825" height="679" alt="Screenshot 2025-11-03 at 10 54 50" src="https://github.com/user-attachments/assets/f0aae86a-6e5a-4036-a7e5-a233f7640ea5" />
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "cloud-fan (via GitHub)" <gi...@apache.org>.
cloud-fan commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3481988683
there are so many python env spec for the CI... do we have a plan to unify? cc @HyukjinKwon
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "bjornjorgensen (via GitHub)" <gi...@apache.org>.
bjornjorgensen commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3479620392
I change the tittle for this PR to add [TESTS] now that its only for tests. CC @cloud-fan
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2484896219
##########
dev/spark-test-image/python-minimum/Dockerfile:
##########
@@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \
wget \
zlib1g-dev
-ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.2.0 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
+ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.3.3 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
Review Comment:
Please revert this because the minimum Pandas version is still 2.2.0.
https://github.com/apache/spark/blob/e837ff9707ef5d08cde53c338dfaf7d81a5c55aa/python/packaging/classic/setup.py#L153
##########
dev/requirements.txt:
##########
@@ -5,7 +5,7 @@ py4j>=0.10.9.9
numpy>=1.22
pyarrow>=15.0.0
six==1.16.0
-pandas>=2.2.0
+pandas>=2.3.3
Review Comment:
Please revert this because the minimum Pandas version is still 2.2.0.
https://github.com/apache/spark/blob/e837ff9707ef5d08cde53c338dfaf7d81a5c55aa/python/packaging/classic/setup.py#L153
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3482040857
Merged to master/4.1 for Apache Spark 4.1.0.
Thank you, @bjornjorgensen and @cloud-fan .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON] Update `Pandas` version 2.3.3 [spark]
Posted by "bjornjorgensen (via GitHub)" <gi...@apache.org>.
bjornjorgensen commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2484948562
##########
dev/spark-test-image/python-minimum/Dockerfile:
##########
@@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \
wget \
zlib1g-dev
-ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.2.0 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
+ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.3.3 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
Review Comment:
Thank you.
I have changed min version back to 2.2.0 but let me know if we should raise the min version to 2.3.3.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2487411917
##########
dev/infra/Dockerfile:
##########
@@ -91,10 +91,10 @@ RUN mkdir -p /usr/local/pypy/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | pypy3
-RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.0' scipy coverage matplotlib lxml
+RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.3' scipy coverage matplotlib lxml
Review Comment:
Please revise the following PR description due to this part. You can simply delete `from 2.3.2` part.
> ### What changes were proposed in this pull request?
> Update pandas from 2.3.2 to 2.3.3
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3525061470
> there are so many python env spec for the CI... do we have a plan to unify? cc @HyukjinKwon
@cloud-fan unifying to a single image will cause disk space issue and environment conflicts, see https://issues.apache.org/jira/browse/SPARK-50294
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun closed pull request #52828: [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3
URL: https://github.com/apache/spark/pull/52828
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "bjornjorgensen (via GitHub)" <gi...@apache.org>.
bjornjorgensen commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2487702119
##########
dev/infra/Dockerfile:
##########
@@ -91,10 +91,10 @@ RUN mkdir -p /usr/local/pypy/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | pypy3
-RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.0' scipy coverage matplotlib lxml
+RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.3' scipy coverage matplotlib lxml
Review Comment:
@dongjoon-hyun Thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON] Update `Pandas` version 2.3.3 [spark]
Posted by "bjornjorgensen (via GitHub)" <gi...@apache.org>.
bjornjorgensen commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2484912611
##########
dev/spark-test-image/python-minimum/Dockerfile:
##########
@@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \
wget \
zlib1g-dev
-ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.2.0 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
+ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.3.3 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
Review Comment:
@dongjoon-hyun ok, but should we change _minimum_pandas_version to 2.3.3. or do you still will have pandas version 2.2.0 as min? pandas 2.3.3 is the first one that support python 3.14
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2485039775
##########
dev/spark-test-image/python-minimum/Dockerfile:
##########
@@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \
wget \
zlib1g-dev
-ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.2.0 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
+ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.3.3 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
Review Comment:
Python 3.14 is not `Apache PySpark`'s minimum support Python version. The minimum versions of Python libraries has different criteria, @bjornjorgensen , because the majority of PySpark users are still using Python 3.10/3.11/3.12/3.13.
> but should we change _minimum_pandas_version to 2.3.3. or do you still will have pandas version 2.2.0 as min?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "zhengruifeng (via GitHub)" <gi...@apache.org>.
zhengruifeng commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3545312205
> @zhengruifeng ok, but can we use something like COPY dev/requirements.txt /tmp/requirements.txt and python3 pip install -m pip install -r /tmp/requirements.txt
the dependencies are not the same, we will need multiple `requirements.txt` files then
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2487536367
##########
dev/infra/Dockerfile:
##########
@@ -91,10 +91,10 @@ RUN mkdir -p /usr/local/pypy/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3.10 && \
ln -sf /usr/local/pypy/pypy3.10/bin/pypy /usr/local/bin/pypy3
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | pypy3
-RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.0' scipy coverage matplotlib lxml
+RUN pypy3 -m pip install numpy 'six==1.16.0' 'pandas==2.3.3' scipy coverage matplotlib lxml
Review Comment:
I fixed it for you, @bjornjorgensen .
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON] Update `Pandas` version 2.3.3 [spark]
Posted by "dongjoon-hyun (via GitHub)" <gi...@apache.org>.
dongjoon-hyun commented on code in PR #52828:
URL: https://github.com/apache/spark/pull/52828#discussion_r2485039775
##########
dev/spark-test-image/python-minimum/Dockerfile:
##########
@@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \
wget \
zlib1g-dev
-ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.2.0 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
+ARG BASIC_PIP_PKGS="numpy==1.22.4 pyarrow==15.0.0 pandas==2.3.3 six==1.16.0 scipy scikit-learn coverage unittest-xml-reporting"
Review Comment:
Python 3.14 is not `Apache PySpark`'s minimum support Python version. The minimum versions of Python libraries has different criteria, @bjornjorgensen , because the majority of PySpark users are still using Python 3.10/3.11/3.12/3.13 users.
> but should we change _minimum_pandas_version to 2.3.3. or do you still will have pandas version 2.2.0 as min?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
Re: [PR] [SPARK-54131][PYTHON][TESTS] Update `Pandas` version 2.3.3 [spark]
Posted by "bjornjorgensen (via GitHub)" <gi...@apache.org>.
bjornjorgensen commented on PR #52828:
URL: https://github.com/apache/spark/pull/52828#issuecomment-3535025746
@zhengruifeng ok, but can we use something like
COPY dev/requirements.txt /tmp/requirements.txt
and
python3 pip install -m pip install -r /tmp/requirements.txt
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org