You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (JIRA)" <ji...@apache.org> on 2019/08/07 13:21:00 UTC

[jira] [Created] (ARROW-6159) [C++] PrettyPrint of arrow::Schema missing identation for first line

Joris Van den Bossche created ARROW-6159:
--------------------------------------------

             Summary: [C++] PrettyPrint of arrow::Schema missing identation for first line
                 Key: ARROW-6159
                 URL: https://issues.apache.org/jira/browse/ARROW-6159
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 0.14.1
            Reporter: Joris Van den Bossche


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

{code}
  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);
{code}

you get 

{code}
column1: int32
    column2: string
{code}

so not applying the indent for the first line.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)