← Back to Pull requests

[BUG] Fix Delta 4.3 INSERT write constructor compatibility [databricks] #16366

Closed
unknown closed this pull request without merging on Oct 16, 2026 04:10 UTC
View on GitHub
unknown unknown commented on Oct 15, 2026 18:49 UTC
Author

Fixes #16365.

Description

With RAPIDS Delta writes enabled, INSERT INTO and INSERT OVERWRITE on Delta Lake 4.3.0 fail with NoSuchMethodError when the GPU V1 fallback writer constructs WriteIntoDelta.

Delta43xProvider inherits a factory compiled against an older constructor signature. Added a Delta 4.3 specific override so the constructor and default arguments resolve against Delta 4.3. Carried forward the Delta 4.2 hooks for DeltaLog selection, catalog metadata, cache invalidation, and catalog refresh.

Expand regression coverage to ten append/overwrite cases covering:

  • Unpartitioned named and path based tables.

  • Cached named tables, verifying updated results through pre write DataFrames and fresh catalog lookups.

  • Partitioned named and path based tables, verifying static partition overwrite preserves untouched partitions.
  • Validation:

  • Delta module builds passed for Spark 4.1.1 and Spark 4.0.1 with Scala 2.13.

  • All ten GPU regression cases passed on Spark 4.1.1, Delta 4.3.0, Java 17, and the CUDA 12 build.
  • Performance was measured locally on Spark 4.1.1 and Delta 4.3.0 by comparing two builds from the same source revision:

  • Constructor only baseline: A temporary build adding only the Delta 4.3 createWriteIntoDelta override, keeping the inherited DeltaLog, catalog, and cache behavior.

  • Submitted fix: The constructor override plus the four hooks carried forward from Delta 4.2 for DeltaLog selection, catalog metadata, recache plan selection, and named table refresh.
  • The original build fails these writes, so this comparison measures the incremental cost of the additional hooks.

    Using 10 measured writes per case after warm-up, median append latency was 647 to 648 ms, overwrite was 699 to 727 ms, cached append was 981 to 1,101 ms, and cached overwrite was 1,089 to 1,195 ms.

    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

  • (Please provide the names of the existing tests in the PR description.)
  • 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: 292 lines (+219 / -73) across 3 files Reviewer: sdrp713 Review duration: 560m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 292 lines diff across 3 files
    0.40
    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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16366"
    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: 39.9% (MEDIUM) · Higher = larger blast radius
    39.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: 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: 15.8% · Safe to merge
    15.8%