Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15475

[C++][Python] Add a space after commas in pretty-print output

    XMLWordPrintableJSON

Details

    • Wish
    • Status: In Progress
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • C++, Python

    Description

      Following ARROW-14798 we can have this kind of pretty-print output:

      struct: [
        -- is_valid: all not null
        -- child 0 type: int64
        [0,1,2,3,4,...,45,46,47,48,49]
        -- child 1 type: list<item: string>
        [["crown","trunk","roots"],["roots","seeds"],...,[],["crown"]],
      ...,
      

      IMHO it would read better as:

      struct: [
        -- is_valid: all not null
        -- child 0 type: int64
        [0, 1, 2, 3, 4, ..., 45, 46, 47, 48, 49]
        -- child 1 type: list<item: string>
        [["crown", "trunk", "roots"], ["roots", "seeds"], ..., [], ["crown"]],
      ...,
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m