GitHub user viirya opened a pull request:

    https://github.com/apache/spark/pull/22787

    [SPARK-25040][SQL] Empty string for non string types should be disallowed

    ## What changes were proposed in this pull request?
    
    This takes over original PR at #22019. The original proposal is to have 
null for float and double types. Later a more reasonable proposal is to 
disallow empty strings. This patch adds logic to throw exception when finding 
empty strings for non string types.
    
    ## How was this patch tested?
    
    Added test.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/viirya/spark-1 SPARK-25040

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22787.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 #22787
    
----
commit 45aacaf916826eb8509c85c056b985172d0e2f50
Author: Liang-Chi Hsieh <viirya@...>
Date:   2018-10-21T12:57:26Z

    Disallow empty strings on non string types.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to