← Back to Pull requests

GH-55691: [CI] Bump minimum supported Spark JDK to 21, fix pandas installation in Spark job and skip current failing test on Spark #55692

Merged
raulcd merged 3 files (23 lines) on Nov 30, 2026 08:51 UTC
View on GitHub
raulcd raulcd commented on Nov 20, 2026 12:00 UTC
Author

Rationale for this change

Spark has bumped the minimum supported JDK version on their master branch to JDK 21, see:

  • https://github.com/apache/spark/pull/59897
  • What changes are included in this PR?

  • Bump JDK to 21

  • Fix pandas installation. While validating I realized all tests were being skipped because pandas was missing.

  • Skip current failing test. I've raised the issue and created a PR on Spark.
  • Are these changes tested?

    Yes via archery

    Are there any user-facing changes?


    No

    Was AI used for this PR?

    In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

    PR code and description written by:

  • Human

  • AI
  • Reviewed before submission by:

  • Human

  • AI

  • Not reviewed
  • GitHub Issue: Closes #55691
  • Diff: 23 lines (+14 / -9) across 3 files Reviewer: kou Review duration: 14211m
    All Vouch review confidence checks passed
    Residual risk 0.09 = Change Risk (0.30) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.30 · 23 lines diff across 3 files
    0.30
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.59 · 5 substantive comment(s)
    0.59
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    69%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.190
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    6 items
    raulcd raulcd commented on code on Nov 23, 2026 10:33 UTC
    Code Review
    ci/scripts/integration_spark.sh:1
    @@ -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

    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.

  • https://github.com/apache/spark/pull/60763
  • tadeja tadeja commented on code on Nov 26, 2026 12:52 UTC
    Code Review
    dev/tasks/tasks.yml:1

    Ha, unrelated stale comment - this should say master instead of branch-3.0 since July 2014 or earlier
    https://github.com/apache/arrow/commit/4161898d5cd7d05ad0fd9f23e1e9df9439460c98#diff-58624af974aef2e2980f03f99d2386e78e3fcb1a53d6a4b06612ded49ea8d449R1543
    Perhaps something like this for a separate minor PR?

    -      # use the branch-3.0 of spark, so prevent reusing any layers
    +      # Fetch the latest Spark master instead of reusing a cached checkout
    

    tadeja tadeja commented on code on Nov 26, 2026 13:06 UTC
    Code Review
    ci/docker/conda-python-spark.dockerfile:1

    -ARG jdk=17
    +ARG jdk=21
    

    What about updating this as well?
    Otherwise local Docker image build may fail with 17 at Maven's validate step.

    raulcd raulcd commented on code on Nov 30, 2026 08:49 UTC
    Code Review
    dev/tasks/tasks.yml:1

          # Fetch the latest Spark master instead of reusing a cached checkout
    

    raulcd raulcd commented on code on Nov 30, 2026 08:50 UTC
    Code Review
    ci/docker/conda-python-spark.dockerfile:1

    ARG jdk=21
    

    Reviewers
    Assignees
    raulcd raulcd
    Labels
    risk: low confidence: 69.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 29.9% (LOW) · Higher = larger blast radius
    29.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 69.6% · Lower = rushed or shallow review
    69.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 9.1% · Safe to merge
    9.1%
    Repository