diff --git a/java/vector/src/main/java/org/apache/arrow/vector/SmallIntVector.java b/java/vector/src/main/java/org/apache/arrow/vector/SmallIntVector.java index a801ef52c1865..34a2426f5bcf9 100644 --- a/java/vector/src/main/java/org/apache/arrow/vector/SmallIntVector.java +++ b/java/vector/src/main/java/org/apache/arrow/vector/SmallIntVector.java @@ -360,7 +360,7 @@ public void setWithPossibleTruncate(int index, long value) { @Override public long getValueAsLong(int index) { - return 0; + return this.get(index); } private class TransferImpl implements TransferPair {