Github user BryanCutler commented on the issue:
https://github.com/apache/spark/pull/21312
It looks like the `ListVector` also needs `setLastSet` to be called with 0,
which is only in `ListVector`. This is fine though, since `ListVector` is the
only vector extending `BaseRepeatedValueVector`
```
case listVector: ListVector =>
val buffers = listVector.getBuffers(false)
buffers.foreach(buf => buf.setByte(0, buf.capacity()))
listVector.setValueCount(0)
listVector.setLastSet(0)
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]