GitHub user tarekauel opened a pull request:
https://github.com/apache/spark/pull/7353
[SPARK-8995][SQL] cast date strings like '2015-01-01 12:15:31' to date
Jira https://issues.apache.org/jira/browse/SPARK-8995
In PR #6981we noticed that we cannot cast date strings that contains a
time, like '2015-03-18 12:39:40' to date. Besides it's not possible to cast a
string like '18:03:20' to a timestamp.
If a time is passed without a date, today is inferred as date.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tarekauel/spark SPARK-8995
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/7353.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 #7353
----
commit c1083fb3e5273f6bea8bba4a4c4964377cc97078
Author: Tarek Auel <[email protected]>
Date: 2015-07-11T02:26:22Z
[SPARK-8995] cast date strings like '2015-01-01 12:15:31' to date or
timestamp
----
---
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]