Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17388][SQL] Support for inferring type date/timestamp/decimal for partition column - #14947
[SPARK-17388][SQL] Support for inferring type date/timestamp/decimal for partition column#14947HyukjinKwon wants to merge 4 commits into
Conversation
HyukjinKwon
commented
Sep 3, 2016
Some tests might be failed due to #14919. |
SparkQA
commented
Sep 3, 2016
Test build #64893 has finished for PR 14947 at commit
|
There was a problem hiding this comment.
IIUC, decimal is not being inferred before.
HyukjinKwon
commented
Sep 11, 2016
Hi @davies , it seems you made some changes related with this before. Could you please take a look? |
SparkQA
commented
Sep 11, 2016
Test build #65219 has finished for PR 14947 at commit
|
There was a problem hiding this comment.
Ah, I think I should check this requirement. I will update the description soon too.
There was a problem hiding this comment.
Checked and I added some more end-to-end tests.
SparkQA
commented
Sep 12, 2016
Test build #65234 has finished for PR 14947 at commit
|
HyukjinKwon
commented
Sep 16, 2016
ping @davies |
HyukjinKwon
commented
Oct 1, 2016
gentle ping @davies |
HyukjinKwon
commented
Oct 8, 2016
@davies I can just remove the decimal change here if you are uncertain of this. |
HyukjinKwon
commented
Oct 15, 2016
ping @davies .. |
davies
commented
Oct 16, 2016
LGTM |
Thanks @davies. (I forgot to push the commits.) |
SparkQA
commented
Oct 18, 2016
Test build #67131 has finished for PR 14947 at commit
|
davies
commented
Oct 18, 2016
Merging this into master, thanks! |
… for partition column ## What changes were proposed in this pull request? Currently, Spark only supports to infer `IntegerType`, `LongType`, `DoubleType` and `StringType`. `DecimalType` is being tried but it seems it never infers type as `DecimalType` as `DoubleType` is being tried first. Also, it seems `DateType` and `TimestampType` could be inferred. As far as I know, it is pretty common to use both for a partition column. This PR fixes the incorrect `DecimalType` try and also adds the support for both `DateType` and `TimestampType` for inferring partition column type. ## How was this patch tested? Unit tests in `ParquetPartitionDiscoverySuite`. Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#14947 from HyukjinKwon/SPARK-17388.
… for partition column ## What changes were proposed in this pull request? Currently, Spark only supports to infer `IntegerType`, `LongType`, `DoubleType` and `StringType`. `DecimalType` is being tried but it seems it never infers type as `DecimalType` as `DoubleType` is being tried first. Also, it seems `DateType` and `TimestampType` could be inferred. As far as I know, it is pretty common to use both for a partition column. This PR fixes the incorrect `DecimalType` try and also adds the support for both `DateType` and `TimestampType` for inferring partition column type. ## How was this patch tested? Unit tests in `ParquetPartitionDiscoverySuite`. Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#14947 from HyukjinKwon/SPARK-17388.
What changes were proposed in this pull request?
Currently, Spark only supports to infer
IntegerType,LongType,DoubleTypeandStringType.DecimalTypeis being tried but it seems it never infers type asDecimalTypeasDoubleTypeis being tried first. Also, it seemsDateTypeandTimestampTypecould be inferred.As far as I know, it is pretty common to use both for a partition column.
This PR fixes the incorrect
DecimalTypetry and also adds the support for bothDateTypeandTimestampTypefor inferring partition column type.How was this patch tested?
Unit tests in
ParquetPartitionDiscoverySuite.