← Back to Pull requests

Add DBR 18.3 Delta write and MERGE implementation [databricks] #16525

Closed
unknown closed this pull request without merging on Oct 24, 2026 17:21 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 18:58 UTC
Author

Related to #16282 and #15424. Follow-up to #16468.

Description

Add the DBR 18.3 Delta transaction, catalog and write implementations following the reader layer.

  • Add the Delta provider, transaction hooks and write adapters, including staged CTAS/RTAS handling.

  • Share the legacy Parquet reader and low-shuffle MERGE implementation between DBR 17.3 and 18.3, with reader selection and discovery settings forwarded for classic and Edge MERGE.

  • Preserve native transaction fallbacks for CDC write phases, eager clustering and column-mapping removal.

  • Remove the reader-only source allowlist so the standalone DBR 18.3 module compiles the full implementation, and document its build prerequisites.

  • Extend low-shuffle MERGE test coverage to DBR 18.3 and add a GPU writer regression for non-eager clustered appends.
  • The default DBR 18.3 release profile continues to package the Delta stub. Build activation and integration-test enablement remain follow-up work.

    Performance

    Performance testing is not required for this staged PR: the default DBR 18.3 distribution still uses the stub, and sharing the DBR 17.3 reader and MERGE code preserves their existing algorithms.

    Validation

    Built the full Delta module on a native DBR 18.3 node using Java 17, after installing the prerequisites documented in delta-lake/delta-spark410db183/README.md:

    mvn -B -f scala2.13/delta-lake/delta-spark410db183/pom.xml \
      -Ddatabricks -Dbuildver=410db183 \
      -DskipTests -Dmaven.test.skip=true \
      -Dmaven.scaladoc.skip clean install
    

    This validation establishes compilation and packaging; complete runtime parity remains tracked in #16282.

    AI assistance: Codex assisted with implementation and validation. The author reviewed and approved the complete changes before posting the PR.

    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: 279 lines (+209 / -70) across 3 files Reviewer: gerashegalov Review duration: 2782m
    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 · 279 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.337
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16525"
    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.6% (MEDIUM) · Higher = larger blast radius
    39.6%
    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.7% · Safe to merge
    15.7%