← Back to Pull requests

Convert DeltaParquetFileFormatV2 from Java to Scala #7890

Closed
unknown closed this pull request without merging on Oct 19, 2026 20:29 UTC
View on GitHub
unknown unknown commented on Oct 16, 2026 20:44 UTC
Author

Which Delta project/connector is this regarding?

  • Spark

  • Standalone

  • Flink

  • Kernel

  • Other (fill in here)
  • Description

    Convert DeltaParquetFileFormatV2 from Java to Scala. Keep the inherited file-format behavior, equality comparisons, serial version UID, and private[v2] Scala visibility.

    The Scala constructor accepts Option[Boolean] directly. Java factories retain their boxed Boolean option and adapt it once at the constructor boundary, preserving Some(null). Removing the eager payload cast changes validation timing for malformed option inputs. Application performance has not been benchmarked.

    How was this patch tested?

    Spark 4.0, 4.1, and 4.2 compilation passed. Spark 4.2 passed 32 existing tests, with zero failures or skips and the same case names/outcomes as the preceding validated conversion. Changed-source Scala formatting passed. No test cases, expectations, or skips were added or weakened.

    build/sbt -DsparkVersion=4.0 sparkV2/compile
    build/sbt -DsparkVersion=4.1 sparkV2/compile
    build/sbt -DsparkVersion=4.2 sparkV2/compile 'sparkV2/testOnly *PartitionUtilsTest *V2RowTrackingReadTest'
    

    Validated commit: ce51a8651f2d6568af4300c164465efad6759c69 on master baseline 3ffc5356f2e42cdcb59daeb060815855729baf18.

    Does this PR introduce _any_ user-facing changes?

    No.

    Diff: 169 lines (+126 / -43) across 2 files Reviewer: huan233usc Review duration: 4305m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.35 · 169 lines diff across 2 files
    0.35
    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.307
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #7890"
    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: 35.2% (MEDIUM) · Higher = larger blast radius
    35.2%
    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: 13.9% · Safe to merge
    13.9%
    Repository