fix: read empty nested Parquet binary dictionaries as null strings #7808
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
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
comphead
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.2backport, 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_stringwrites three present structs with a nullDictionary(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.