Skip to content
Snippets Groups Projects
Commit d780ed8b authored by Nong Li's avatar Nong Li Committed by Reynold Xin
Browse files

[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.
parent 3814d0bc
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment