← Back to Pull requests

feat(parquet): support FINITE_VECTOR in Arrow Go #1605

Open
unknown opened this pull request with 191 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 18, 2026 11:38 UTC
Author

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. With FINITE_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?

  • Read and write the FINITE_VECTOR

  • Add pqarrow.WithFiniteVectorLogicalType() so callers can write eligible fixed-size lists with FINITE_VECTOR.

  • Reject null elements, 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 pqarrow tests 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.

    Diff: 191 lines (+143 / -48) across 2 files Reviewer: rok Review duration: 9951m
    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
    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%
    46%
    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.315
    Real PR Conversation Timeline
    1 comments
    "Review active on #1605"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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.9% (MEDIUM) · Higher = larger blast radius
    35.9%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.1% · Safe to merge
    19.1%