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

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

     [ https://issues.apache.org/jira/browse/ARROW-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-612.
--------------------------------
    Resolution: Fixed

Issue resolved by pull request 368
[https://github.com/apache/arrow/pull/368]

> [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)