← Back to Pull requests

Promote shuffle and coalescing contracts to root-safe API [databricks] #16546

Closed
unknown closed this pull request without merging on Oct 29, 2026 01:01 UTC
View on GitHub
unknown unknown commented on Oct 24, 2026 05:35 UTC
Author

Related to #15821.

Description

Move six existing shuffle, coalescing, CPU-bridge priority, and compression configuration types from sql-plugin to the root-safe sql-plugin-api module. Their package names and implementations stay the same; seven generated class files move from spark-shared to the conventional JAR root.

Keep ShuffledBatchRDDPartition in sql-plugin. Promoting it caused the Databricks 18.3 distribution build to fail the cross-shim byte-identity audit when assembling Spark 3.5.0 and Databricks 18.3 worlds. The other promoted types passed that audit in the local multi-shim builds. This changes class placement only; it adds no configuration and changes no partitioning, scheduling, coalescing, or compression logic. AI assistance was used to prepare the move and validation.

Validation: clean bounded multi-shim dist builds passed for Scala 2.12 (Spark 3.3.4, 3.4.4, 3.5.9) and Scala 2.13 (Spark 3.5.0, 3.5.9, 4.0.4, 4.1.3, 4.2.0), including package-phase audits. Both assembled JARs have the seven promoted class files at the root and ShuffledBatchRDDPartition plus its companion in spark-shared, with no root copies. Existing CoalescedBatchPartitionerSuite and GpuCpuBridgeThreadPoolSuite tests passed (5/5 on Spark 3.3.4). The Databricks 18.3 pairing remains to be verified by CI; its runtime JARs are not available in the local OSS matrix.

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

  • (CoalescedBatchPartitionerSuite and GpuCpuBridgeThreadPoolSuite, 5/5)
  • Not required
  • Performance

  • Tests ran and results are added in the PR description

  • Issue filed with a link in the PR description

  • Not required
  • Only class ownership and JAR placement change; no runtime logic or per-operation work was added.

    Diff: 244 lines (+183 / -61) across 3 files Reviewer: sdrp713 Review duration: 6925m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 244 lines diff across 3 files
    0.39
    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%
    56%
    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.329
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16546"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 56.8% 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: 38.8% (MEDIUM) · Higher = larger blast radius
    38.8%
    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: 56.8% · Lower = rushed or shallow review
    56.8%
    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: 16.8% · Safe to merge
    16.8%