← Back to Pull requests

Add Spark 4.1.4 shim support [databricks] #16837

Closed
unknown closed this pull request without merging on Nov 16, 2026 01:27 UTC
View on GitHub
unknown unknown commented on Nov 11, 2026 06:04 UTC
Author

Fixes #16833.
contributes to #16814.

Description

Spark 4.1.4 is not currently recognized as a supported build and runtime version, so the RAPIDS Accelerator cannot be built or loaded for that Spark release.

This change adds the Scala 2.13 release414 profile, inherits the Spark 4.1.3 shim sources, registers an exact Spark 4.1.4 shim service provider, generates the Spark 4.1.4 support metadata, and updates the supported-version documentation. Users can build the plugin with -Dbuildver=414; no new configuration is introduced.

Spark 4.1.4 also contains maintenance fixes already adapted for Spark 4.0.5. This change selects those existing implementations and regression suites for Spark 4.1.4, covering floating-point normalization in array set operations, Long-boundary sequence handling, storage-partitioned join partition-value projection, ORC timestamp inference, rejection of duplicate Parquet physical-field requests, and write validation and overwrite ordering. The extreme Decimal scale case remains outside this PR and is tracked by #16834.

The foundational profile intentionally uses the Delta Lake and Iceberg stub modules. Real integration compatibility has not yet been established and remains tracked by #16623 and #16624 under the Spark 4.1.4 epic #16101. Iceberg test source selection is limited accordingly; in particular, the S3 input-file suite is not selected for the Spark 4.1.4, 4.2, or 5.0 stub profiles.

Validation completed:

  • The full Scala 2.13/CUDA 13 Spark 4.1.4 build and installation completed successfully with Delta Lake and Iceberg stubs.

  • Scala 2.13/CUDA 13 validate passed for Spark 4.1.4, including Scalastyle and license checks.

  • Focused Scala regression suites passed 19 tests covering provider matching, ORC inference, Parquet field requests, SPJ partition values, sequence boundaries, file-write validation, and the stub-compatible Iceberg deletion-vector tests.

  • Spark 4.1.4 RC4 integration testing passed all 10 selected non-Decimal regressions for array signed-zero/NaN semantics, sequence overflow, and saveAsTable overwrite.

  • Spark 4.2 test compilation passed after removing the S3 input-file suite from stub profiles.

  • The source-resolver suite passed all 21 tests, including explicit Iceberg selection boundaries for Spark 4.1.1 through 4.1.3, 4.1.4, 4.2, and 5.0.

  • Shim compatibility checked all 4,297 requirements across supported profiles with no findings, including 133 Spark 4.1.4 requirements.
  • Performance validation used the same dual-shim CUDA 13 JAR for Spark 4.1.3 and the Spark 4.1.4 RC4 candidate, local NDS Parquet SF100 data, GPU execution with local[16], all 103 benchmark queries, one iteration per query, and 8 shuffle writer threads. Two consecutive complete runs per Spark version from the same Spark 4.1.3-then-4.1.4 session produced:

  • Spark 4.1.3: 419 seconds and 423 seconds; average 421 seconds.

  • Spark 4.1.4: 421 seconds and 431 seconds; average 426 seconds.

  • Spark 4.1.4 was 1.19% slower by average Power Test Time. All 412 query executions completed, and no obvious overall performance regression was observed.
  • This change was prepared with AI assistance and has been reviewed by the contributor before publication.

    Checklists

    Documentation

  • Updated for new or modified user-facing features or behaviors

  • No user-facing change
  • Testing

  • Added or modified tests to cover new code paths

  • Covered by existing tests

  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Diff: 456 lines (+342 / -114) across 5 files Reviewer: res-life Review duration: 6923m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 456 lines diff across 5 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.366
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16837"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 45.5% (MEDIUM) · Higher = larger blast radius
    45.5%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 18.0% · Safe to merge
    18.0%