Skip to content

Conversation

@alamb
Copy link

@alamb alamb commented Jun 25, 2025

While reviewing https://github.com/apache/arrow-rs/pull/7778/files I wanted some additional comments and also to avoid a String clone. I will comment inline

buffer: ValueBuffer,
pending: Option<(String, usize)>,
/// Is there a pending list or object that needs to be finalized?
pending: Option<(&'b str, usize)>,
Copy link
Author

Choose a reason for hiding this comment

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

I started this PR to see if I could avoid this owned string, which it turns out you can

Variant::ShortString(s) => self.append_short_string(s),
Variant::Object(_) | Variant::List(_) => {
todo!("How does this work with the redesign?");
unreachable!("Nested values are handled specially by ObjectBuilder and ListBuilder");
Copy link
Author

Choose a reason for hiding this comment

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

I noticed this too and figured it was related and I would update the comment

@friendlymatthew friendlymatthew merged commit 2fb3d42 into pydantic:friendlymatthew/nested-object-building Jun 25, 2025
10 of 12 checks 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