← Back to Pull requests

fix: read empty nested Parquet binary dictionaries as null strings #7808

Open
unknown opened this pull request with 184 lines diff across 2 files
View on GitHub
unknown unknown commented on Dec 01, 2026 00:54 UTC
Author

Which issue does this PR close?

This fixes the empty dictionary panic reported during review of #7718. It affects the nested conversion introduced by #7106 for #7032.

Rationale for this change

A Parquet struct can have a binary dictionary child with null keys and no entries. Reading that child as a string calls Arrow's normalized_keys(), which asserts that the dictionary has at least one entry. The read panics even though all the field values are null.

The affected code is in Comet 1.2.0. This PR isolates the crash fix for a branch-1.2 backport, as requested on #7718. The top-level decoding and allocation changes are in #7718.

What changes are included in this PR?

Return a null string array of the input length when a binary dictionary has no entries. Mark the field present so each parent struct retains its validity.

How are these changes tested?

nested_all_null_binary_dictionary_reads_as_string writes three present structs with a null Dictionary(Int32, Binary) child and reads them back through the Parquet scan with the child requested as a string. It checks that the three structs are present and all three string fields are null. Hosted CI runs the regression.

Diff: 184 lines (+138 / -46) across 2 files Reviewer: comphead Review duration: 2740m
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 184 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.312
Real PR Conversation Timeline
1 comments
"Review active on #7808"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 43.0% 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.7% (MEDIUM) · Higher = larger blast radius
35.7%
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: 43.0% · Lower = rushed or shallow review
43.0%
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: 20.4% · Safe to merge
20.4%