projjal opened a new pull request #8742:
URL: https://github.com/apache/arrow/pull/8742


   ComplexCopier gives incorrect result for list vector if target vector is 
non-empty. When copying a list vector using ComplexCopier, if the target list 
vector is non-empty, the result vector is incorrect. For example, if src = 
[[1,2], [3, 4]], tgt = [[5, 6], [7, 8]], copying src to tgt gives tgt = [[5, 6, 
1, 2], [3, 4]] instead of [[1,2], [3, 4]]
   Similary when using copyFrom(/Safe) method if the vector at the index is 
non-empty, the listElement is appended instead. For above src and tgt vector, 
tgt.copyFrom(0, 0, src) gives [[5, 6, 1, 2], []] instead of [[1,2], [3, 4]]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to