[
https://issues.apache.org/jira/browse/ARROW-612?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rok Mihevc updated ARROW-612:
-----------------------------
External issue URL: https://github.com/apache/arrow/issues/16241
> [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
> Reporter: Bryan Cutler
> Assignee: Bryan Cutler
> Priority: Trivial
> Fix For: 0.3.0
>
>
> 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
(v8.20.10#820010)