aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src
diff options
context:
space:
mode:
authorNong Li <nong@databricks.com>2016-02-27 19:45:57 -0800
committerReynold Xin <rxin@databricks.com>2016-02-27 19:45:57 -0800
commitd780ed8b5c9156ac8595ac5cbb77d83c65fad64c (patch)
tree7cfbed7b99045a9e03d19424b16f1421fbbca80f /sql/core/src
parent3814d0bcf6f1697a94123be4b224cbd7554025a9 (diff)
downloadspark-d780ed8b5c9156ac8595ac5cbb77d83c65fad64c.tar.gz
spark-d780ed8b5c9156ac8595ac5cbb77d83c65fad64c.tar.bz2
spark-d780ed8b5c9156ac8595ac5cbb77d83c65fad64c.zip
[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.
Diffstat (limited to 'sql/core/src')
-rw-r--r--sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedPlainValuesReader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedPlainValuesReader.java b/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedPlainValuesReader.java
index bf3283e853..57cc28e9f4 100644
--- a/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedPlainValuesReader.java
+++ b/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedPlainValuesReader.java
@@ -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;
}
}