← Back to Pull requests

Core: Reject new equality deletes in v4 tables #18993

Open
unknown opened this pull request with 125 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 16, 2026 08:53 UTC
Author

The v4 spec forbids adding equality deletes (#17783, vote), but MergingSnapshotProducer still accepts them on v4. They are now rejected, including deletes staged on v3 and committed after an upgrade. Existing equality deletes stay readable and removable. Tests that write equality deletes skip their v4 runs, dropping that coverage; reviewers may prefer DV fixtures.

Test plan: four new TestRowDelta cases and three TestRewriteFiles cases. The iceberg-core and iceberg-data suites pass. Spark 3.5 to 4.2 and Flink 1.20 to 2.3 tests that add equality deletes now skip v4; locally, the affected Spark 4.2 and Flink classes pass.

---
AI Disclosure

  • Model: Claude (Anthropic)

  • Platform/Tool: Kiro (Kiro Crew)

  • Human Oversight: partially reviewed

  • Prompt Summary: Reject new equality delete files on v4 tables in core, keeping existing ones readable and removable. The validation change and its tests are generated.
  • Diff: 125 lines (+93 / -32) across 1 files Reviewer: JeonDaehong Review duration: 21342m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 125 lines diff across 1 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #18993"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 36.9% (MEDIUM) · Higher = larger blast radius
    36.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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.7% · Safe to merge
    19.7%
    Repository