You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Larry White (Jira)" <ji...@apache.org> on 2022/08/19 19:29:00 UTC

[jira] [Created] (ARROW-17480) [Java] add setNull() to ValueVector interface

Larry White created ARROW-17480:
-----------------------------------

             Summary: [Java] add setNull() to ValueVector interface
                 Key: ARROW-17480
                 URL: https://issues.apache.org/jira/browse/ARROW-17480
             Project: Apache Arrow
          Issue Type: Improvement
          Components: Java
    Affects Versions: 9.0.0
            Reporter: Larry White


Only three ValueVector types do not implement setNull(): UnionVector, DenseUnionVector and NullVector, preventing it from being addable to the ValueVector interface and thus requiring a cast when used. 

For NullVector, it could be added as a no-op. For the other two, it could be added by having it write a null to a child instead of setting a null in the parent. Note that this is similar to the implementation in UnionListWriter. 

See also a similar issue opened for FieldWriter (ARROW-2538), which may be closable given the current code base. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)