Skip to content

[C++] Add support for specifying custom Array opening and closing delimiters to arrow::PrettyPrintDelimiters #37979

Closed

Description

@kevingurney

Describe the enhancement requested

As a follow up to #37981, in order to make the arrow::PrettyPrint functionality for arrow::Array more flexible, it would be useful to be to specify a custom Array opening and closing delimiter other than "[" and "]".

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

In order to support custom Array opening and closing delimiters, we could add two new properties, open and close, to the arrow::PrettyPrintDelimiters struct.

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 options.array_delimiters.open = "<" and options.array_delimiters.close = ">".

Component(s)

C++

Activity

  1. added a commit that references this issue on Oct 5, 2023
  2. self-assigned this
    on Oct 9, 2023
  3. changed the title [-][C++] Add support for specifying custom Array opening and closing delimiters to `arrow::PrettyPrintOptions`[/-] [+][C++] Add support for specifying custom Array opening and closing delimiters to `arrow::PrettyPrintDelimiters`[/+] on Oct 10, 2023
  4. added a commit that references this issue on Oct 12, 2023
  5. added this to the 15.0.0 milestone on Oct 12, 2023
  6. added 2 commits that reference this issue on Nov 13, 2023
  7. added 2 commits that reference this issue on Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions