[
https://issues.apache.org/jira/browse/ARROW-13981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17419828#comment-17419828
]
Liya Fan commented on ARROW-13981:
----------------------------------
[~tzhang] Thanks for reporting the problem.
It is a bug that needs to be fixed. The fundamental reason is that the
{{BitVector}} has a type width of 0, so a special implementation is required
for it.
If this problem blocks you, I think you can work around by using
{{BitVectorHelper#concatBits}}, which efficiently concats two bit buffers.
> [Java] VectorSchemaRootAppender doesn't work for BitVector
> ----------------------------------------------------------
>
> Key: ARROW-13981
> URL: https://issues.apache.org/jira/browse/ARROW-13981
> Project: Apache Arrow
> Issue Type: Bug
> Components: Java
> Affects Versions: 4.0.0
> Reporter: ZHUO ZHANG
> Priority: Critical
>
> Looks like the buffer copy logic doesn't work for BitVector, even though the
> BitVector is from BaseFixedWidthVector. I created two VectorSchemaRoot
> (target empty), calling
> {code:java}
> VectorSchemaRootAppender.append(target, source);{code}
> then reading from the target didn't give me correct result.
>
> Hope to get confirmation from experts that this is a problem in Apache Arrow,
> if yes, wondering if there is a workaround (tried using copyFromSafe as well
> and it doesn't work either)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)