[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:
parent
3814d0bcf6
commit
d780ed8b5c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue