Skip to content

Commit

Permalink
fix: adding test refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhatha committed May 6, 2024
1 parent 413fee2 commit bd32ec5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -439,15 +439,15 @@ private void setValuesInBuffer(int[] bufValues, ArrowBuf buffer, long bufWidth)
*/
@Test
public void testBasicListViewAddition() {
try (ListViewVector listViewVector = ListViewVector.empty("sourceVector", allocator);
BigIntVector elementVector = new BigIntVector("element-vector", allocator)) {
try (ListViewVector listViewVector = ListViewVector.empty("sourceVector", allocator)) {

listViewVector.allocateNew();

try (ArrowBuf newOffSetBuf = allocator.buffer(1024);
ArrowBuf newSizeBuffer = allocator.buffer(1024);
ArrowBuf validityBuffer = allocator.buffer(
DataSizeRoundingUtil.divideBy8Ceil(1024))) {
DataSizeRoundingUtil.divideBy8Ceil(1024));
BigIntVector elementVector = new BigIntVector("element-vector", allocator)) {
elementVector.allocateNew(7);

elementVector.set(0, 12);
Expand Down

0 comments on commit bd32ec5

Please sign in to comment.