GitHub user sergey-rubtsov reopened a pull request:
https://github.com/apache/spark/pull/16735
[SPARK-19228][SQL] Introduce tryParseDate method to process csv date â¦
â¦column with custom format as date
## What changes were proposed in this pull request?
This patch fixes bugs:
1) All the dates parsed as timestamps.
2) Option "dateFormat" is ignored when read csv files with date data.
Instead of this option default date format ("yyyy-MM-dd") is using.
For other details, please, read the ticket
https://issues.apache.org/jira/browse/SPARK-19228
## How was this patch tested?
Tested with unit tests only. Add new test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sergey-rubtsov/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16735.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #16735
----
commit 287005809cec5388dcb75a3d99bc0f0461b9bb69
Author: sergei.rubtcov <[email protected]>
Date: 2017-03-10T13:03:27Z
[SPARK-19228][SQL] Introduce tryParseDate method to process csv date, add a
type-widening rule in findTightestCommonType between DateType and
TimestampType, add an end-to-end test case
commit 3e250f56ee5f3a5c1ce5542d56670973233e62b7
Author: sergei.rubtcov <[email protected]>
Date: 2017-03-13T14:13:17Z
Merge branch 'master' of https://github.com/apache/spark
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]