Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17354][SQL] Partitioning by dates/timestamps should work with Parquet vectorized reader - #14919
Closed
HyukjinKwon wants to merge 3 commits into
Closed
[SPARK-17354][SQL] Partitioning by dates/timestamps should work with Parquet vectorized reader#14919HyukjinKwon wants to merge 3 commits into
HyukjinKwon wants to merge 3 commits into
Conversation
SparkQA
commented
Sep 1, 2016
Test build #64780 has finished for PR 14919 at commit
|
sameeragarwal
commented
Sep 3, 2016
Member
@HyukjinKwon can we add a more targeted unit test in one of the vectorized reader test suites that can explicitly test for partitioned columns? |
HyukjinKwon
commented
Sep 3, 2016
MemberAuthor
@sameeragarwal Thanks for your comment. Yeap, I will. |
HyukjinKwon
commented
Sep 3, 2016
MemberAuthor
@sameeragarwal Could you take another look please? |
SparkQA
commented
Sep 3, 2016
Test build #64891 has finished for PR 14919 at commit
|
SparkQA
commented
Sep 4, 2016
Test build #64909 has finished for PR 14919 at commit
|
MemberAuthor
@davies Do you mind if I ask to review please? |
sameeragarwal
commented
Sep 6, 2016
Member
LGTM, thanks @HyukjinKwon! cc @davies |
HyukjinKwon
commented
Sep 7, 2016
MemberAuthor
Thanks @sameeragarwal ! |
davies
commented
Sep 9, 2016
Contributor
LGTM, merging into master and 2.0 branch, thanks! |
asfgit pushed a commit
that referenced
this pull request
Sep 9, 2016
… Parquet vectorized reader This PR fixes `ColumnVectorUtils.populate` so that Parquet vectorized reader can read partitioned table with dates/timestamps. This works fine with Parquet normal reader. This is being only called within [VectorizedParquetRecordReader.java#L185](https://github.com/apache/spark/blob/master/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedParquetRecordReader.java#L185). When partition column types are explicitly given to `DateType` or `TimestampType` (rather than inferring the type of partition column), this fails with the exception below: ``` 16/09/01 10:30:07 ERROR Executor: Exception in task 0.0 in stage 5.0 (TID 6) java.lang.ClassCastException: java.lang.Integer cannot be cast to java.sql.Date at org.apache.spark.sql.execution.vectorized.ColumnVectorUtils.populate(ColumnVectorUtils.java:89) at org.apache.spark.sql.execution.datasources.parquet.VectorizedParquetRecordReader.initBatch(VectorizedParquetRecordReader.java:185) at org.apache.spark.sql.execution.datasources.parquet.VectorizedParquetRecordReader.initBatch(VectorizedParquetRecordReader.java:204) at org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$buildReader$1.apply(ParquetFileFormat.scala:362) ... ``` Unit tests in `SQLQuerySuite`. Author: hyukjinkwon <gurwls223@gmail.com> Closes#14919 from HyukjinKwon/SPARK-17354. (cherry picked from commit f7d2143) Signed-off-by: Davies Liu <davies.liu@gmail.com>
wgtmac pushed a commit
to wgtmac/spark
that referenced
this pull request
Sep 19, 2016
… Parquet vectorized reader ## What changes were proposed in this pull request? This PR fixes `ColumnVectorUtils.populate` so that Parquet vectorized reader can read partitioned table with dates/timestamps. This works fine with Parquet normal reader. This is being only called within [VectorizedParquetRecordReader.java#L185](https://github.com/apache/spark/blob/master/sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/VectorizedParquetRecordReader.java#L185). When partition column types are explicitly given to `DateType` or `TimestampType` (rather than inferring the type of partition column), this fails with the exception below: ``` 16/09/01 10:30:07 ERROR Executor: Exception in task 0.0 in stage 5.0 (TID 6) java.lang.ClassCastException: java.lang.Integer cannot be cast to java.sql.Date at org.apache.spark.sql.execution.vectorized.ColumnVectorUtils.populate(ColumnVectorUtils.java:89) at org.apache.spark.sql.execution.datasources.parquet.VectorizedParquetRecordReader.initBatch(VectorizedParquetRecordReader.java:185) at org.apache.spark.sql.execution.datasources.parquet.VectorizedParquetRecordReader.initBatch(VectorizedParquetRecordReader.java:204) at org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat$$anonfun$buildReader$1.apply(ParquetFileFormat.scala:362) ... ``` ## How was this patch tested? Unit tests in `SQLQuerySuite`. Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#14919 from HyukjinKwon/SPARK-17354.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR fixes
ColumnVectorUtils.populateso that Parquet vectorized reader can read partitioned table with dates/timestamps. This works fine with Parquet normal reader.This is being only called within VectorizedParquetRecordReader.java#L185.
When partition column types are explicitly given to
DateTypeorTimestampType(rather than inferring the type of partition column), this fails with the exception below:How was this patch tested?
Unit tests in
SQLQuerySuite.