← Back to Pull requests

GH-55576: [C++][Parquet] Fast path for reading fixed-size lists #55577

Open
unknown opened this pull request with 224 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 12, 2026 17:23 UTC
Author

Closes #55576.

Rationale for this change

Parquet reader uses the general list path for fixed-size lists as well. It unpacks the markers that tell it which values are present and where each list starts. It does a lot of extra work that is not necessary for a fixed-sized list.

What changes are included in this PR?

  • Check the stored markers to make sure all values are present

  • Check each list has the expected size.

  • Use the existing reader when a page contains nulls or a pattern the fast reader cannot handle.

  • Add a benchmark that compares fixed-size lists with flat columns containing the same float values.
  • Are these changes tested?

  • Tested list sizes 1, 3, 8, 9, 15, 16, and 768.
  • | Values per list | Old Read | New Fast Read | Median speedup |
    | ---: | ---: | ---: | ---: |
    | 1 | 66.29 ms | 11.18 ms | 5.93× |
    | 3 | 96.55 ms | 32.26 ms | 2.99× |
    | 8 | 70.52 ms | 28.95 ms | 3.12× |
    | 9 | 73.10 ms | 26.72 ms | 2.73× |
    | 15 | 130.86 ms | 28.95 ms | 3.56× |
    | 16 | 131.27 ms | 30.11 ms | 3.69× |
    | 768 | 86.65 ms | 30.81 ms | 1.90× |
    | 1,024 | 77.92 ms | 23.95 ms | 2.56× |
    | 2,048 | 68.88 ms | 26.27 ms | 2.40× |
    | 4,096 | 65.41 ms | 26.25 ms | 2.61× |

    Are there any user-facing changes?

    Supported numeric fixed-size lists use the faster reader automatically. This also works with existing Parquet files that store the Arrow fixed-size-list type.

    Was AI used for this PR?

    Codex helped make the tests and write benchmark tests.
    PR code and description written by

  • Human

  • AI
  • Reviewed before submission by

  • Human

  • AI

  • Not reviewed
  • Proposal: https://github.com/rok/arrow/issues/61
    Related reference: https://github.com/apache/arrow/pull/55197

  • GitHub Issue: #55576
  • Diff: 224 lines (+168 / -56) across 2 files Reviewer: Mola-maker Review duration: 27335m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 224 lines diff across 2 files
    0.37
    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.324
    Real PR Conversation Timeline
    1 comments
    "Review active on #55577"
    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: 36.9% (MEDIUM) · Higher = larger blast radius
    36.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.7% · Safe to merge
    19.7%
    Repository