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

[C++] PrettyPrint of arrow::Schema missing identation for first line

    XMLWordPrintableJSON

Details

    Description

      Minor issue, but I noticed when printing a Schema with indentation, like:

        std::shared_ptr<arrow::Field> field1 = arrow::field("column1", arrow::int32());
        std::shared_ptr<arrow::Field> field2 = arrow::field("column2", arrow::utf8());
      
        std::shared_ptr<arrow::Schema> schema = arrow::schema({field1, field2});
      
        arrow::PrettyPrintOptions options{4};
        arrow::PrettyPrint(*schema, options, &std::cout);
      

      you get

      column1: int32
          column2: string
      

      so not applying the indent for the first line.

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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