Support binary type in min/max aggregations [databricks] #16303
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
sdrp713
Fixes #8643 .
Description
Enable GPU
min/maxaggregations 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.| 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
Testing
(Please provide the names of the existing tests in the PR description.)
Performance