Skip to content

[C++] Add support for specifying custom Array element delimiter to arrow::PrettyPrintOptions #37978

@kevingurney

Description

@kevingurney

Describe the enhancement requested

In order to make the arrow::PrettyPrint functionality for arrow::Array more flexible, it would be useful to be to specify a custom Array element delimiter other than ",".

For example, the MATLAB interface wraps the Arrow C++ libraries and being able to specify a custom Array element delimiter, would make it possible to make the display of MATLAB arrow.array.Array objects more MATLAB-like.

In order to support custom Array element delimiters, we could add a new option to the arrow::PrettyPrintOptions struct named something like array_element_delimiter with type std::string.

Implementing this functionality would enable use cases like the ability to display an arrow::Array that normally displays as [1,2,3] to display as [1 | 2 | 3] by setting array_element_delimiter = " | ".

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions