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:
    
![image](https://user-images.githubusercontent.com/5399861/47979721-793b1e80-e0ff-11e8-97c8-24b10950ee9e.png)
    
![image](https://user-images.githubusercontent.com/5399861/47979725-7dffd280-e0ff-11e8-87d4-5767a00ed46e.png)
    
    
    ## 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: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to