Skip to content

Conversation

@grtlr
Copy link
Contributor

@grtlr grtlr commented Jan 19, 2026

Rationale for this change

In some cases, it is desirable to print strings with surrounding quotation marks. A typical example that we run into in https://github.com/rerun-io/rerun is a StructArray that contains empty strings:

Current formatting:

{name: }

Added option in this PR:

{name: ""}

What changes are included in this PR?

This PR relies on std::fmt::Debug to do the actual formatting of strings, which means that all escaping is handled out of the box.

Are these changes tested?

This PR contains test for different types of inputs, including escape sequences. Additionally, it also tests the StructArray example outlined above.

Are there any user-facing changes?

By default this option is false, making the feature opt-in.

@github-actions github-actions bot added the arrow Changes to the arrow crate label Jan 19, 2026
@grtlr grtlr force-pushed the grtlr/quoted-strings branch from 42b5c25 to 3bba1f3 Compare January 19, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant