|
79 | 79 | import org.apache.arrow.vector.ValueVector; |
80 | 80 | import org.apache.arrow.vector.VarBinaryVector; |
81 | 81 | import org.apache.arrow.vector.VarCharVector; |
82 | | -import org.apache.arrow.vector.VariableWidthVector; |
83 | 82 | import org.apache.arrow.vector.VectorSchemaRoot; |
84 | 83 | import org.apache.arrow.vector.ViewVarBinaryVector; |
85 | 84 | import org.apache.arrow.vector.ViewVarCharVector; |
@@ -185,7 +184,8 @@ boolean roundtrip(FieldVector vector, Class<?> clazz) { |
185 | 184 | String.format("expected %s but was %s", clazz, imported.getClass())); |
186 | 185 | result = VectorEqualsVisitor.vectorEquals(vector, imported); |
187 | 186 |
|
188 | | - if (imported instanceof BaseVariableWidthVector || imported instanceof BaseLargeVariableWidthVector) { |
| 187 | + if (imported instanceof BaseVariableWidthVector |
| 188 | + || imported instanceof BaseLargeVariableWidthVector) { |
189 | 189 | ArrowBuf offsetBuffer = imported.getOffsetBuffer(); |
190 | 190 | assertTrue(offsetBuffer.capacity() > 0); |
191 | 191 | assertEquals(0, offsetBuffer.getInt(0)); |
@@ -614,7 +614,6 @@ public void testVarCharVector() { |
614 | 614 | @Test |
615 | 615 | public void testEmptyVarCharVector() { |
616 | 616 | try (final VarCharVector vector = new VarCharVector("v", allocator)) { |
617 | | - setVector(vector, new String[] {}); |
618 | 617 | assertTrue(roundtrip(vector, VarCharVector.class)); |
619 | 618 | } |
620 | 619 | } |
@@ -655,7 +654,6 @@ public void testLargeVarCharVector() { |
655 | 654 | @Test |
656 | 655 | public void testEmptyLargeVarCharVector() { |
657 | 656 | try (final LargeVarCharVector vector = new LargeVarCharVector("v", allocator)) { |
658 | | - setVector(vector, new String[] {}); |
659 | 657 | assertTrue(roundtrip(vector, LargeVarCharVector.class)); |
660 | 658 | } |
661 | 659 | } |
|
0 commit comments