← Back to Pull requests

Allow Delta Lake 4.3.1 and 4.3.2.2 in the Delta 4.3 runtime shim #17033

Closed
unknown closed this pull request without merging on Nov 26, 2026 07:40 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 05:06 UTC
Author

Fixes #17032. This change targets release/26.10.

Description

A Spark 4.1.1 deployment using Delta Lake 4.3.2.2 fails to initialize the Delta provider because the 4.3 runtime shim accepts only 4.3.0. Extend the Delta 4.3 version allowlist from only 4.3.0 to the tested releases (4.3.0, 4.3.1, and 4.3.2.2) so Spark 4.0.1 and 4.1.1 can select the existing Delta 4.3 shim while untested 4.3.x releases fall back to NoDeltaProvider. The plugin continues to compile against Delta 4.3.0.

Auditing upstream Delta Lake changes from 4.3.0 to 4.3.1 identified one GPU/CPU metadata parity gap: Delta 4.3.1 (delta-io/delta#7126) filters the reserved DSv2 is_managed_location property out of committed Delta table metadata in AbstractDeltaCatalog.createDeltaTable. GpuDeltaCatalogBase now mirrors this filtering for Delta 4.3.1 and 4.3.2.2 via DeltaRuntimeShim.filterIsManagedLocationProperty, while preserving exact CPU parity on Delta 3.3 through 4.3.0.

The shim suite covers allowlisted 4.3 version selection (4.3.0, 4.3.1, 4.3.2.2), rejection of untested 4.3.x releases (4.3.2, 4.3.3) and malformed 4.3./4.3.x strings without falling through to pre-4.2 shims, is_managed_location filtering, and CPU/GPU stageCreate metadata parity. The Unity Catalog REST safety test suite (delta_lake_catalog_rest_test.py), run_unity_catalog_server.sh, and jenkins/spark-tests.sh artifact resolution are also updated to accept 4.3.0, 4.3.1, and 4.3.2.2 rather than pinning only to 4.3.0. In CI, jenkins/spark-premerge-build.sh (ci_scala213) runs DeltaRuntimeShimSuite on Spark 4.0.1 + Delta 4.3.0 and Spark 4.1.1 + Delta 4.3.1, and jenkins/spark-tests.sh selects Delta 4.3.1 on Spark 4.1.1 while keeping 4.3.0 on Spark 4.0.1.

Validation

All tests below ran locally on a Linux host with Java 17, Scala 2.13, CUDA 12 (26.10.1-SNAPSHOT), and NVIDIA RTX PRO 4500 (32 GB) GPUs.

Build and static checks

  • Spark 4.1.1 (buildver=411, Scala 2.13), Spark 4.0.1 (buildver=401, Scala 2.13), and Spark 3.5.3 delta-33x (buildver=353, Scala 2.12): clean compile/package, Apache RAT, and all-module Scalastyle passed.
  • Unit and integration tests

    | Spark | Delta runtime | DeltaRuntimeShimSuite | Full Delta IT (-m delta_lake --delta_lake, 15 files) | UC REST IT (delta_lake_catalog_rest_test.py) |
    | --- | --- | --- | --- | --- |
    | 4.1.1 | 4.3.0 | 13 passed | 1,041 passed, 0 failed (606 skipped) | 15 passed, 0 failed |
    | 4.1.1 | 4.3.1 | 13 passed | 1,041 passed, 0 failed (606 skipped) | 15 passed, 0 failed |
    | 4.0.1 | 4.3.0 | 13 passed | 1,022 passed, 0 failed (625 skipped) | 15 passed, 0 failed |
    | 4.0.1 | 4.3.1 | 13 passed | 1,022 passed, 0 failed (625 skipped) | 15 passed, 0 failed |

    \ On Spark 4.0.1 + Delta 4.3.0, one wide-schema test (test_delta_append_data_exec_v1[False-False]) hit a transient TaskResultLost under the default 1.5 GB driver memory and passed 2/2 on rerun. After adding the is_managed_location fix, DeltaRuntimeShimSuite (13/13 on all four combinations, plus 9 passed / 4 canceled on default 4.1.0 and 4.0.1 profiles), delta_lake_catalog_rest_test.py (15/15 on all four combinations), standalone CPU vs GPU is_managed_location parity checks (4.3.0 and 4.3.1), and the full delta_lake_write_test.py suite on Spark 4.1.1 + Delta 4.3.1 (120 passed, 0 failed) were re-run and passed. Negative checks confirmed -Pdelta43-tests rejects Delta 4.1.0 (Spark 4.1.1) and 4.2.0 (Spark 4.0.1), and run_unity_catalog_server.sh rejects invalid --delta-version 4.3..

    After merging release/26.10 (including #16877), using the explicit allowlist (4.3.0, 4.3.1, 4.3.2.2), and wiring CI coverage in e9c8ba11b:

  • All-module Scalastyle and Apache RAT passed (0 errors, 0 warnings).

  • DeltaRuntimeShimSuite passed 15/15 on both Spark 4.0.1 + Delta 4.3.0 and Spark 4.1.1 + Delta 4.3.1 using the exact ci_scala213 premerge commands with -Drapids.parallelUnitTests=true on e9c8ba11b (DeltaRuntimeShimSuite + DeltaProbeImplSuite also passed 20/20 on Spark 4.1.1 Delta 4.3.0/4.3.1 and Spark 4.0.1 Delta 4.3.0/4.3.1, and 16 passed / 4 canceled on Spark 4.1.1 default Delta 4.1.0 on 281a2a220/d7e084688).

  • Rebuilt the Spark 4.0.1 distribution JAR and ran targeted Delta 4.3.1 GPU smoke integration tests on 9a0889d71 (test_delta_scan_read, test_delta_read_column_mapping, test_delta_write_round_trip_unmanaged, test_delta_ctas_sql, and version classifier tests): 28 passed, 0 failed; test_oss_delta_lake_version_classifiers passed 13/13 on e9c8ba11b after renaming to is_supported_oss_delta_lake_43 (including rejecting untested 4.3.2 and 4.3.3).
  • The downstream 4.3.2.2 artifact is not published on Maven Central; it has been validated locally against this change, while validation in its release test environment remains.

    Performance

    Measured on Spark 4.1.1 (local[16], 1x RTX PRO 4500 32 GB, RapidsShuffleManager MULTITHREADED, local NVMe copy of NDS SF100 Delta dataset, 35 GiB / 24 tables), comparing release/26.10 base (0948cd2ba) + Delta 4.3.0 against this PR + Delta 4.3.0 and Delta 4.3.1 across two interleaved rounds (forward and reverse order) after page-cache warmup.

    NDS SF100 on Delta (sf100_query_0.sql, all 103 subqueries, 102/103 GPU plans, 0 failures)

    | Arm (mean of 2 interleaved rounds) | Total query time | Power test wall | Geomean | vs base 4.3.0 (sum / geomean) |
    | --- | ---: | ---: | ---: | --- |
    | release/26.10 base + Delta 4.3.0 | 330.23 s (332.64 / 327.82) | 332.00 s | 2,134.0 ms | baseline |
    | PR + Delta 4.3.0 | 331.10 s (328.67 / 333.53) | 332.50 s | 2,139.6 ms | +0.26% / +0.26% |
    | PR + Delta 4.3.1 | 330.44 s (333.80 / 327.08) | 331.50 s | 2,131.6 ms | +0.06% / -0.11% |

    Delta write microbenchmarks on SF100 store_sales (288M rows, 2 interleaved rounds, GPU plans confirmed)

    | Query | GPU operator | Base 4.3.0 (s) | PR 4.3.0 (s) | PR 4.3.1 (s) |
    | --- | --- | ---: | ---: | ---: |
    | ctas | GpuAtomicCreateTableAsSelect | 9.07 | 9.44 (+4.14%) | 9.62 (+6.09%) |
    | update | GpuUpdateCommand | 20.10 | 19.98 (-0.63%) | 20.48 (+1.91%) |
    | delete | GpuDeleteCommand | 17.24 | 17.32 (+0.49%) | 17.45 (+1.22%) |
    | merge | GpuMergeIntoCommand43x | 32.77 | 33.25 (+1.47%) | 33.46 (+2.12%) |
    | compact (288,913 -> 1,824 files) | GpuOptimizeTableCommand | 441.80 | 444.22 (+0.55%) | 443.40 (+0.36%) |
    | liquid_cluster | GpuOptimizeTableCommand | 20.58 | 20.34 (-1.17%) | 20.19 (-1.92%) |

    (ctas is the first query of each JVM and reflects ~0.3–0.5 s cold-JIT variance; merge ran with spark.sql.ansi.enabled=false for Spark 4.x int32 expression parity and spark.rapids.sql.reader.batchSizeRows=4000000 / batchSizeBytes=128m to keep GpuInputFileName strings below cuDF's 2 GiB column limit; compact benchmarked OPTIMIZE via SHALLOW CLONE of the same 288,913-file maxRecordsPerFile=1000 table across all arms.)

    AI assistance from Codex and Devin was used to prepare, audit, and validate this backport.

    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: 650 lines (+487 / -163) across 8 files Reviewer: firestarman Review duration: 10233m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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%
    56%
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #17033"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 22.5% · Safe to merge
    22.5%