DRILL-6486: BitVector split and transfer does not work correctly for non byte-multipl...
authorkarthik <kmanivannan@maprtech.com>
Thu, 7 Jun 2018 20:23:04 +0000 (13:23 -0700)
committerVitalii Diravka <vitalii.diravka@gmail.com>
Fri, 22 Jun 2018 18:28:23 +0000 (21:28 +0300)
commit947e6e561414182f2060d905daae197f3dd71f9f
tree11230b0cbbb210bb0d7609d11fbb802b797c6cc7
parentaa127b70b1e46f7f4aa19881f25eda583627830a
DRILL-6486: BitVector split and transfer does not work correctly for non byte-multiple transfer lengths

Fix for the bug in BitVector splitAndTransfer. The logic for handling copy of last-n bits was incorrect for none byte-multiple transfer lengths.

closes #1316
exec/java-exec/src/test/java/org/apache/drill/exec/record/vector/TestValueVector.java
exec/java-exec/src/test/java/org/apache/drill/exec/vector/TestSplitAndTransfer.java
exec/vector/src/main/java/org/apache/drill/exec/vector/BitVector.java