← Back to Pull requests

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

Closed
unknown closed this pull request without merging on Nov 27, 2026 09:42 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 11:32 UTC
Author

Fixes #17032.

Description

Ports #17033 from release/26.10 to main.

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) across the supported Spark 4.0.1, 4.0.5, 4.1.1, and 4.1.4 versions on main so those releases 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.

Compared with #17033 on release/26.10, this main port additionally:

  • Preserves main's Spark 4.0.5 and 4.1.4 support matrix and #17155's Delta 4.4+ guard.

  • Updates .github/workflows/delta43-unit-tests.yml to run DeltaRuntimeShimSuite on both Delta 4.3.0 and 4.3.1 with -Ddelta43.spark.plugins="spark.plugins= ," for CPU-only GitHub Actions runners, while keeping SQLPlugin enabled by default for local and Blossom serial/parallel GPU runs.

  • Updates main's Delta 4.3 selective-replacement unit tests in DeltaRuntimeShimSuite to accept all allowlisted 4.3 versions, and renames is_oss_delta_lake_43 to is_supported_oss_delta_lake_43 across all Delta Python integration tests (including delta_lake_v2_read_test.py).

  • Wires DeltaRuntimeShimSuite into jenkins/spark-premerge-build.sh (ci_scala213) for Spark 4.0.1 + Delta 4.3.0 and Spark 4.1.1 + Delta 4.3.1, aligns jenkins/spark-tests.sh to select Delta 4.3.1 on Spark 4.1.1 and 4.1.4 while keeping 4.3.0 on Spark 4.0.1 and 4.0.5, and updates docs/additional-functionality/delta-lake-selective-replacement.md.
  • Validation (Java 17)

  • All-module Scalastyle (2,132 files, 0 errors/warnings), Apache RAT, bash -n, shellcheck -S error, py_compile, and ./build/make-scala-version-build-files.sh 2.13 sync passed.

  • Spark 4.1.1 (buildver=411, Scala 2.13): built and installed 18 modules through tests; DeltaRuntimeShimSuite passed 24/24 (0 canceled) on both Delta 4.3.0 and Delta 4.3.1 in CPU-only mode (CUDA_VISIBLE_DEVICES="" with the exact .github/workflows/delta43-unit-tests.yml command), 24/24 (0 canceled) in GPU serial mode (default SQLPlugin enabled) on Delta 4.3.1, and 24/24 (0 canceled) in GPU parallel mode (-Drapids.parallelUnitTests=true) on Delta 4.3.1.

  • Spark 4.0.1 (buildver=401, Scala 2.13): DeltaRuntimeShimSuite passed 23/23 (1 expected Spark 4.1-only case canceled) on Delta 4.3.0 via the exact Blossom ci_scala213 command (-Drapids.parallelUnitTests=true); default Delta 4.2.0 passed 17/17 (DeltaProbeImplSuite + DeltaRuntimeShimSuite, 12 expected Delta 4.3 cases canceled).

  • Rebuilt the Spark 4.0.1 distribution JAR and ran main-specific Delta 4.3 GPU integration tests against Delta 4.3.1: full delta_lake_v2_read_test.py passed 91/91, targeted selective replacement tests (replaceUsing / replaceOn) in delta_lake_write_test.py passed 11/11, all 8 modified Delta test files collected cleanly (2,059 tests), test_oss_delta_lake_version_classifiers passed 13/13, and run_unity_catalog_server.sh confirmed rejecting --delta-version 4.3.2. Upstream delta-io/delta v4.3.0...v4.3.1 (5 commits) confirmed no changes to DeltaInsertReplaceOnOrUsingCommand, DeltaV2Table, SparkScan, or ServerSidePlannedScan.

  • Prior full Delta integration test validation on #17033 passed 1,041/1,041 (Spark 4.1.1) and 1,022/1,022 (Spark 4.0.1) plus 15/15 UC REST tests across both Delta 4.3.0 and 4.3.1. The downstream 4.3.2.2 artifact is not published on Maven Central; it was validated locally while release-environment validation remains.
  • Performance

    Carried over from #17033 (measured on release/26.10; not re-run on main 26.12.0-SNAPSHOT), NDS SF100 Delta and SF100 store_sales write benchmarks on Spark 4.1.1 (local[16], 1x RTX PRO 4500 32 GB, 2 interleaved rounds after page-cache warmup; identical runtime shim and is_managed_location property-filtering logic):

  • NDS SF100 (103 subqueries, 102/103 GPU plans, 0 failures): base 4.3.0 330.23 s (geomean 2,134.0 ms) vs PR + Delta 4.3.0 331.10 s (+0.26%) vs PR + Delta 4.3.1 330.44 s (+0.06% sum / -0.11% geomean).

  • SF100 store_sales writes (288M rows): update (-0.63% / +1.91%), delete (+0.49% / +1.22%), merge (+1.47% / +2.12%), compact (+0.55% / +0.36%), liquid_cluster (-1.17% / -1.92%), and ctas (+4.14% / +6.09%, cold-JIT first query of each JVM, ~0.3–0.5 s variance).
  • AI assistance from Codex and Devin was used to prepare and validate this port.

    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: 1330m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). 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%
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #17166"
    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: 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: 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: 20.5% · Safe to merge
    20.5%