Skip to content

GH-49683: [C++][Parquet] Fix def level for fixed_size_list with list_size 0 - #53255

Closed
nil68657 wants to merge 1 commit into
apache:mainfrom
nil68657:fix-49683
Closed

nil68657 wants to merge 1 commit into
apache:mainfrom
nil68657:fix-49683

Conversation

@nil68657

Copy link
Copy Markdown

Rationale for this change

The writer used the list's full definition level for empty fixed-size
lists, so each zero-sized list was read back as a list with one null
element. Use max_def_level - 1, as for variable-size lists.

What changes are included in this PR?

  • cpp/src/parquet/arrow/path_internal.cc

Are these changes tested?

Yes. A regression test in cpp/src/parquet/arrow/arrow_reader_writer_test.cc fails without the change and passes with it; the surrounding test module/binary passes.

Are there any user-facing changes?

See the rationale above.

Was AI used for this PR?

This PR is a joint contribution from Nilanjan Chatterjee (@nil68657) and Claude (Claude Opus 5.5, via Claude Code). Nilanjan chose the issue and directed the work; Claude reproduced the bug, wrote the fix, the test and this description.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

… list_size 0

The writer used the list's full definition level for empty fixed-size
lists, so each zero-sized list was read back as a list with one null
element. Use max_def_level - 1, as for variable-size lists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the awaiting review Awaiting review label Oct 11, 2026
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #49683 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

This pull request has been automatically closed because you currently have 9 open pull requests, which is more than the limit of 3.

Due to the increase in pull requests opened by AI bots, and in order to keep the review queue manageable, Apache Arrow limits contributors without repository access to at most 3 concurrently open pull requests. This helps make sure each pull request gets the attention it needs and that work in progress does not go stale.

Once one of your other open pull requests has been merged or closed, you are welcome to reopen this one.

See also:

@github-actions github-actions Bot closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant