Skip to content

Commit a03f927

Browse files
committed
[SPARK-20566] ColumnVector should support appendFloats for array
1 parent 13f47dc commit a03f927

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ColumnVector.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,14 @@ public final int appendFloats(int count, float v) {
801801
return result;
802802
}
803803

804+
public final int appendFloats(int length, float[] src, int offset) {
805+
reserve(elementsAppended + length);
806+
int result = elementsAppended;
807+
putFloats(elementsAppended, length, src, offset);
808+
elementsAppended += length;
809+
return result;
810+
}
811+
804812
public final int appendDouble(double v) {
805813
reserve(elementsAppended + 1);
806814
putDouble(elementsAppended, v);

0 commit comments

Comments
 (0)