Skip to content

Commit fdc0870

Browse files
committed
fix bug
1 parent e6e60e0 commit fdc0870

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ private void throwUnsupportedException(int requiredCapacity, Throwable cause) {
523523
* size of the written array.
524524
*/
525525
public void putArrayOffsetAndSize(int rowId, int offset, int size) {
526-
long offsetAndSize = (offset << 32) | size;
526+
long offsetAndSize = (((long) offset) << 32) | size;
527527
putLong(rowId, offsetAndSize);
528528
}
529529

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public final class OnHeapColumnVector extends ColumnVector {
4343
private byte[] byteData;
4444
private short[] shortData;
4545
private int[] intData;
46-
// This is not only used to store data for int column vector, but also can store offsets and
46+
// This is not only used to store data for long column vector, but also can store offsets and
4747
// lengths for array column vector.
4848
private long[] longData;
4949
private float[] floatData;

0 commit comments

Comments
 (0)