Skip to content

feat: add allocation-free scalar path visitors - #104

Merged
b41sh merged 3 commits into
databendlabs:mainfrom
b41sh:feat-visit-scalar-api
Sep 2, 2026
Merged

b41sh merged 3 commits into
databendlabs:mainfrom
b41sh:feat-visit-scalar-api

Conversation

@b41sh

@b41sh b41sh commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Add callback-based APIs to visit JSONB scalar leaf paths and values without allocating an intermediate result vector.
  • Preserve canonical key paths while traversing nested objects and arrays.

@b41sh
b41sh requested a review from sundy-li September 2, 2026 02:26

@sundy-li sundy-li left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved per reviewer request.

P1 note: this PR removes the public OwnedKeyPath::QuotedName(String) variant and maps quoted paths to Name(String). That is a downstream compatibility risk because existing consumers that construct or match QuotedName will fail to compile, and serialized/display representations may change. The PR tests and CI pass; this concern is about public API compatibility rather than current behavior.

@b41sh
b41sh merged commit fba895c into databendlabs:main Sep 2, 2026
1 check passed
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.

2 participants