Skip to content

fix(parquet): report initialized row-group columns correctly - #1072

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-row-group-column-count
Open

fix(parquet): report initialized row-group columns correctly#1072
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/parquet-row-group-column-count

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Problem

RowGroupMetaDataBuilder.nextCol already represents the number of initialized columns. The incomplete-row-group error subtracted one from it, reporting -1 before any column was initialized and remaining off by one afterward.

Change

Report nextCol directly in the diagnostic. This changes only the error count; row-group construction behavior is unchanged.

Coverage

The regression test checks the messages with zero and one initialized columns in a two-column schema.

Validation

go test ./parquet/metadata

@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant