GitHub user wangyum opened a pull request:
https://github.com/apache/spark/pull/22943
[SPARK-25098][SQL] Trim the string when cast stringToTimestamp and
stringToDate
## What changes were proposed in this pull request?
**Hive** and **Oracle** trim the string when cast `stringToTimestamp` and
`stringToDate`. this PR support this feature:


## How was this patch tested?
unit tests
Closes https://github.com/apache/spark/pull/22089
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangyum/spark SPARK-25098
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/22943.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 #22943
----
commit d297817b7457fef40eb78b803542aed213afb7fc
Author: Yuming Wang <yumwang@...>
Date: 2018-11-05T05:31:22Z
trim() the string when cast stringToTimestamp and stringToDate
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]