Skip to content

refactor(req): consolidate fallible construction in builders - #223

Open
Xuanwo wants to merge 3 commits into
apache:mainfrom
Xuanwo:xuanwo/req-builder-validation
Open

refactor(req): consolidate fallible construction in builders#223
Xuanwo wants to merge 3 commits into
apache:mainfrom
Xuanwo:xuanwo/req-builder-validation

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Aug 25, 2026

Copy link
Copy Markdown
Member

REQ construction currently exposes overlapping fallible paths through try_new and builder configuration, which duplicates validation and makes builder chaining inconsistent.

Make ReqSketchBuilder::build the sole fallible construction boundary, add the equivalent ReqUnionBuilder, remove the unreleased try_new APIs, and route deserialization and internal construction through the builders.

@Xuanwo
Xuanwo marked this pull request as ready for review August 25, 2026 10:19
Xuanwo added 2 commits August 25, 2026 18:21
…lidation

# Conflicts:
#	datasketches/src/req/sketch.rs
#	datasketches/src/req/union.rs
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