[SPARK-13533][SQL] Fix readBytes in VectorizedPlainValuesReader

## What changes were proposed in this pull request?

Fix readBytes in VectorizedPlainValuesReader. This fixes a copy and paste issue.

## How was this patch tested?

Ran ParquetHadoopFsRelationSuite which failed before this.

Author: Nong Li <nong@databricks.com>

Closes #11414 from nongli/spark-13533.
This commit is contained in:
Nong Li 2016-02-27 19:45:57 -08:00 committed by Reynold Xin
parent 3814d0bcf6
commit d780ed8b5c

View file

@ -85,7 +85,7 @@ public class VectorizedPlainValuesReader extends ValuesReader implements Vectori
for (int i = 0; i < total; i++) {
// Bytes are stored as a 4-byte little endian int. Just read the first byte.
// TODO: consider pushing this in ColumnVector by adding a readBytes with a stride.
c.putInt(rowId + i, buffer[offset]);
c.putByte(rowId + i, buffer[offset]);
offset += 4;
}
}