Skip to content

refactor(parquet): remove deprecated ArrowRowGroupWriterFactory::new - #12036

Open
HippoBaro wants to merge 1 commit into
apache:mainfrom
HippoBaro:remove-arrow-row-group-factory-new
Open

HippoBaro wants to merge 1 commit into
apache:mainfrom
HippoBaro:remove-arrow-row-group-factory-new

Conversation

@HippoBaro

@HippoBaro HippoBaro commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

#11971 introduced ArrowRowGroupWriterFactory::try_new and deprecated the infallible new constructor. Keeping new required storing schema-planning failures and replaying them when column writers were created. This follow-up removes the deprecated API and its compatibility machinery as a breaking change for a future major release.

What changes are included in this PR?

  • Remove ArrowRowGroupWriterFactory::new.
  • Store the validated Arc<ArrowWriteSchemaPlan> directly and remove the deferred-error representation and helper indirection.
  • Retain construction-time error assertions for mismatched leaf counts and invalid map-key schemas; remove tests specific to deferred-error replay.

Are these changes tested?

All tests passing.

Are there any significant user-facing changes?

Breaking API change (api-change): replace ArrowRowGroupWriterFactory::new(&file_writer, schema) with ArrowRowGroupWriterFactory::try_new(&file_writer, schema)? (or otherwise handle the returned Result). Schema-planning errors are returned during construction rather than deferred until column-writer creation.

Remove the infallible constructor deprecated in apache#11971 and the deferred
schema-planning error machinery retained for compatibility. Store the
validated schema plan directly and simplify writer creation.

Update validation tests to exercise try_new and remove tests specific
to deferred-error replay.

Signed-off-by: Hippolyte Barraud <[email protected]>
@HippoBaro
HippoBaro force-pushed the remove-arrow-row-group-factory-new branch from 0a2e387 to f536205 Compare November 2, 2026 14:41
@HippoBaro
HippoBaro marked this pull request as ready for review November 2, 2026 14:43
@etseidl etseidl added parquet parquet crate api-change Breaking API change, needs to wait for a major version release next-major-release the PR has API changes and it waiting on the next major version labels Nov 2, 2026
@HippoBaro HippoBaro changed the title refactor(parquet): remove deprecated ArrowRowGroupWriterFactory::new refactor(parquet): remove deprecated ArrowRowGroupWriterFactory::new Nov 2, 2026
@alamb

alamb commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thank you

@Rich-T-kid Rich-T-kid left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

I know we have a minor release to make first but should we create a thread for arrow v61.0.0?

we can include this and #11957 as targets to include.

edit:
@alamb is one step ahead -> #10527

@Jefffrey

Jefffrey commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

per our deprecation policy i think we need to wait for a bit longer than removing in v61, considering this will be deprecated in v60.2.0

@Rich-T-kid Rich-T-kid added enhancement New feature/addition and removed enhancement New feature/addition labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-change Breaking API change, needs to wait for a major version release next-major-release the PR has API changes and it waiting on the next major version parquet parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants