ListViewVector#copyFrom
Throws IndexOutOfBoundsException
on Non-Empty Elements
#471
Labels
Type: bug
Something isn't working
ListViewVector
's#copyFrom
is broken. Here is a test (that otherwise works forList
):ComplexCopier#writeValue
has impl:Note that the implementation of
UnionListViewReader#next
will never ever return false:Notice how
currentOffset < currentOffset + size
can only ever be false ifsize <= 0
-- butsize
is never modified.I suspect the desired conditional is:
Please note that the embedded comment is also nonsense. It's not clear why the approach differs from
UnionListReader
, keeping a consistent approach would have prevented introducing a bug.This issue exists in main as of 480e1be.
The text was updated successfully, but these errors were encountered: