feat(parquet): support FINITE_VECTOR in Arrow Go #1605
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 191 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.315
Real PR Conversation Timeline
1 comments
"Review active on #1605"
general
weight: 0.35
rok
Rationale for this change
Arrow Go can already save a fixed-size list as a Parquet
LIST. However, it still needs the saved Arrow schema to recover the list size when reading. WithFINITE_VECTOR(3)in the Parquet schema, Arrow Go can read the column as a fixed-size list of length 3 even when the file has no saved Arrow schema. We are basically trying to save the size in Parquet's own schema.What changes are included in this PR?
FINITE_VECTORpqarrow.WithFiniteVectorLogicalType()so callers can write eligible fixed-size lists withFINITE_VECTOR.NaN, and infinity when writing a present vector. A whole vector can still be null if the column allows it.References: Parquet spec, Arrow C++ PR, and Parquet Java PR.
Are these changes tested?
Yes. The Parquet schema suite and focused
pqarrowtests passed on Windows.Are there any user-facing changes?
Yes. Arrow Go can now read FINITE_VECTOR() in the Parquet schema and turn it into a fixed-size list of length. To save the FINITE_VECTOR label when writing a file, users need to turn on pqarrow.WithFiniteVectorLogicalType(). This option is off by default because I believe older Parquet readers may not be able to open files with new added FINITE_VECTOR() label.
Codex and Gemini assisted with reviewing it.