← Back to Pull requests

Support binary type in min/max aggregations [databricks] #16303

Closed
unknown closed this pull request without merging on Oct 16, 2026 03:02 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:40 UTC
Author

Fixes #8643 .

Description

Enable GPU min/max aggregations for binary values, including binary nested in arrays and structs. Reuse the existing cuDF aggregation implementation.

Add tests for unsigned ordering, shared prefixes, empty values, nulls, nested binary, grouped/global aggregation, and batch-size variations.

Validation

88 correctness test executions passed across Spark 3.5.3 / Scala 2.12 and Spark 4.0.1 / Scala 2.13 (44 each). Both builds, scalastyle, and whitespace checks passed.

Performance results

Tested on Spark2a with 100 million rows, comparing the latest GPU implementation against CPU fallback for min/max, with other RAPIDS operators enabled. Covered 32 byte, 128 byte shared prefix, and 128 byte random payloads; global and 100k group aggregation; and default and columnar caches.

  • Seven significant improvements

  • Five cases with no significant difference

  • No significant regressions
  • | Cache | Payload | Aggregation | CPU (s) | GPU (s) | Speedup | AB p-value | Significant result |
    |---|---|---|---:|---:|---:|---:|---|
    | default | 32 byte | Global | 0.6414 | 0.6019 | 1.066× | 0.684769 | No significant change |
    | default | 32 byte | 100k groups | 1.7528 | 1.4341 | 1.222× | 7.47164e-14 | Improvement |
    | default | 128 byte shared prefix | Global | 0.6953 | 0.6711 | 1.036× | 0.659684 | No significant change |
    | default | 128 byte shared prefix | 100k groups | 2.2437 | 2.1237 | 1.056× | 0.0013516 | Improvement |
    | default | 128 byte random | Global | 1.1486 | 0.7557 | 1.520× | 0.0061052 | Improvement |
    | default | 128 byte random | 100k groups | 2.5206 | 2.2924 | 1.100× | 0.0126916 | Improvement |
    | columnar | 32 byte | Global | 0.5531 | 0.4645 | 1.191× | 0.00301157 | Improvement |
    | columnar | 32 byte | 100k groups | 1.6886 | 1.4027 | 1.204× | 0.0225261 | Improvement |
    | columnar | 128 byte shared prefix | Global | 0.7259 | 0.5613 | 1.293× | 0.0554764 | No significant change |
    | columnar | 128 byte shared prefix | 100k groups | 2.0457 | 2.0432 | 1.001× | 0.977277 | No significant change |
    | columnar | 128 byte random | Global | 1.1342 | 1.1104 | 1.021× | 0.869297 | No significant change |
    | columnar | 128 byte random | 100k groups | 2.5641 | 2.0732 | 1.237× | 2.23383e-18 | Improvement |

    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: 347 lines (+260 / -87) across 4 files Reviewer: sdrp713 Review duration: 3502m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 347 lines diff across 4 files
    0.42
    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.350
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16303"
    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.4% (MEDIUM) · Higher = larger blast radius
    42.4%
    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%