[ 
https://issues.apache.org/jira/browse/ARROW-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15905845#comment-15905845
 ] 

Bryan Cutler commented on ARROW-612:
------------------------------------

PR: 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)

Reply via email to