Repository navigation
Conversation
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
force-pushed
the
remove-arrow-row-group-factory-new
branch
from
November 2, 2026 14:41
0a2e387 to
f536205
Compare
HippoBaro
marked this pull request as ready for review
November 2, 2026 14:43
ArrowRowGroupWriterFactory::new
Contributor
|
Thank you |
17 tasks
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 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Rationale for this change
#11971 introduced
ArrowRowGroupWriterFactory::try_newand deprecated the infalliblenewconstructor. Keepingnewrequired 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?
ArrowRowGroupWriterFactory::new.Arc<ArrowWriteSchemaPlan>directly and remove the deferred-error representation and helper indirection.Are these changes tested?
All tests passing.
Are there any significant user-facing changes?
Breaking API change (
api-change): replaceArrowRowGroupWriterFactory::new(&file_writer, schema)withArrowRowGroupWriterFactory::try_new(&file_writer, schema)?(or otherwise handle the returnedResult). Schema-planning errors are returned during construction rather than deferred until column-writer creation.