← Back to Pull requests

Add GPU Parquet support for Delta server-side planned scans #16350

Closed
unknown closed this pull request without merging on Oct 27, 2026 04:48 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 22:36 UTC
Author

Fixes #16349.

Description

Add GPU Parquet support for Delta 4.2 and 4.3’s DataSource V2 ServerSidePlannedScan.

The implementation wraps Delta’s original scan and preserves its planning inputs, cached planning result, authoritative file list, input partitions, projected schema, limit semantics, and returned storage credentials. Supported Parquet reading uses the existing RAPIDS readers and reader settings.

Retain CPU execution for unsupported schemas, required read fields, inaccessible Delta reader state, input file metadata expressions, and enabled ignoreMissingFiles/ignoreCorruptFiles settings. These fallbacks preserve Delta’s CPU results and failure behavior without additional footer reads during planning.

Scan equality and hashing depend only on the original Delta scan to preserve exchange and stage reuse. Delta 4.3 reuses the same scan rule as Delta 4.2.

Validation

  • Builds passed for Spark 4.0.1, 4.0.2 and 4.1.1.

  • Planning/runtime Scala suites passed 14 applicable tests with Delta 4.2 and all 16 with Delta 4.3. The Delta 4.3 runtime tests used the required Delta extension and catalog configuration.

  • Older Delta runtime suites passed seven applicable tests each with Delta 4.0.1 and 4.1.0.

  • All 168 Python integration cases passed: 42 for each Spark 4.0.1/4.1.1 and Delta 4.2/4.3 combination.
  • The existing Delta 4.3 writer test now checks normalized option keys case insensitively.

    PERFILE, MULTITHREADED and COALESCING configurations were tested with the current one file per task layout. Small file packing and large file splitting are follow up work.

    Performance results

    Measured on Spark2a with Spark 4.1.1, Delta 4.2.0, eight GPU executors, and three independent applications per arm.

    | Workload | CPU reader mean (s) | GPU reader mean (s) | Speedup |
    |---|---:|---:|---:|
    | Narrow aggregate | 63.500 | 9.048 | 7.02× |
    | Wide decimal aggregate | 235.311 | 17.842 | 13.19× |
    | Residual-filter aggregate | 62.400 | 6.333 | 9.85× |

    These measurements isolate the scan replacement.

    The workload used the store_sales table from Spark2a’s delta_sf3k_decimal dataset, pinned to Delta snapshot 0: 1,824 Parquet files totaling approximately 407 GiB. The queries exercised narrow aggregation, wide aggregation over decimal columns, and aggregation with a residual filter.

    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: 356 lines (+267 / -89) across 4 files Reviewer: sdrp713 Review duration: 17651m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 356 lines diff across 4 files
    0.43
    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.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16350"
    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: 42.5% (MEDIUM) · Higher = larger blast radius
    42.5%
    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: 16.8% · Safe to merge
    16.8%