Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions ci/docker/conda-python-spark.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@ ARG arch_short
ARG python=3.11
FROM --platform=linux/${arch} ${repo}:${arch_short}-conda-python-${python}

ARG jdk=17
ARG jdk=21
ARG maven=3.9.9

ARG numpy=latest
COPY ci/scripts/install_numpy.sh /arrow/ci/scripts/
# Spark master requires pandas<3, remove pin and use latest once resolved:
# https://github.com/apache/spark/issues/59824
ARG pandas=2.*
COPY ci/scripts/install_pandas.sh /arrow/ci/scripts/

RUN mamba install -q -y \
openjdk=${jdk} \
maven=${maven} \
pandas && \
maven=${maven} && \
mamba clean --all --yes && \
mamba uninstall -q -y numpy && \
/arrow/ci/scripts/install_numpy.sh ${numpy}
/arrow/ci/scripts/install_pandas.sh ${pandas} ${numpy}

# installing specific version of spark
ARG spark=master
Expand Down
7 changes: 5 additions & 2 deletions ci/scripts/integration_spark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,18 @@ pushd "${spark_dir}"
echo "Building Spark ${spark_version}"

# Build Spark only
build/mvn -B -DskipTests package
build/mvn -B -DskipTests -Phive package

# Run pyarrow related Python tests only
# "pyspark.sql.tests.arrow.test_arrow_grouped_map" and
# "pyspark.sql.tests.arrow.test_arrow_cogrouped_map" currently fail.
# See: https://github.com/apache/arrow/issues/44986
spark_python_tests=(
"pyspark.sql.tests.arrow.test_arrow"
"pyspark.sql.tests.arrow.test_arrow_map"
# Skip test_arrow_map for now due to known issues with PyArrow API changes.
# Remove skip once Spark fixes:
# https://issues.apache.org/jira/browse/SPARK-62139

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I created a PR on Spark to fix this and be able to remove the skip. We can merge this and remove later or if the Spark fix gets merged I'll remove it from here.

#"pyspark.sql.tests.arrow.test_arrow_map"
"pyspark.sql.tests.arrow.test_arrow_python_udf")

case "${spark_version}" in
Expand Down
4 changes: 2 additions & 2 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ tasks:
image: conda-python-hdfs
{% endfor %}

{% for python_version, spark_version, test_pyarrow_only, numpy_version, jdk_version in [("3.11", "master", "false", "latest", "17")] %}
{% for python_version, spark_version, test_pyarrow_only, numpy_version, jdk_version in [("3.11", "master", "false", "latest", "21")] %}
test-conda-python-{{ python_version }}-spark-{{ spark_version }}:
ci: github
template: docker-tests/github.linux.yml
Expand All @@ -796,7 +796,7 @@ tasks:
NUMPY: "{{ numpy_version }}"
JDK: "{{ jdk_version }}"
fetch_depth: 0
# use the branch-3.0 of spark, so prevent reusing any layers
# Fetch the latest Spark master instead of reusing a cached checkout
flags: --no-leaf-cache
image: conda-python-spark
timeout: 90
Expand Down
Loading