You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Bryan Cutler (JIRA)" <ji...@apache.org> on 2017/03/10 22:37:04 UTC

[jira] [Created] (ARROW-612) [Java] Field toString should show nullable flag status

Bryan Cutler created ARROW-612:
----------------------------------

             Summary: [Java] Field toString should show nullable flag status
                 Key: ARROW-612
                 URL: https://issues.apache.org/jira/browse/ARROW-612
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java - Vectors
            Reporter: Bryan Cutler
            Assignee: Bryan Cutler
            Priority: Trivial


Often when comparing Schemas, I'll see an error message like below because of differing schemas.  The only difference is one is nullable and one is not, but that info is not printed in the {{Field.toString}} method.

{noformat}
 - numeric type conversion *** FAILED *** (118 milliseconds)
[info]   java.lang.IllegalArgumentException: Different schemas:
[info] Schema<i: Int(32, true)>
[info] Schema<i: Int(32, true)>
[info]   at org.apache.arrow.vector.util.Validator.compareSchemas(Validator.java:43)
{noformat}

I would be nice to match the C++ {{Field.toString}} that prints " not null " only if the nullable flag is not set.  Which would then look like this
{noformat}
[info] Schema<i: Int(32, true) not null>
[info] Schema<i: Int(32, true)>
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)