spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petermaxlee <...@git.apache.org>
Subject [GitHub] spark pull request #14358: [SPARK-16729][SQL] Throw analysis exception for i...
Date Tue, 26 Jul 2016 02:15:26 GMT
GitHub user petermaxlee opened a pull request:

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

    [SPARK-16729][SQL] Throw analysis exception for invalid date casts

    ## What changes were proposed in this pull request?
    Spark currently throws exceptions for invalid casts for all other data types except date
type. Somehow date type returns null. It should be consistent and throws analysis exception
as well.
    
    ## How was this patch tested?
    Added a unit test case in CastSuite.

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

    $ git pull https://github.com/petermaxlee/spark SPARK-16729

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

    https://github.com/apache/spark/pull/14358.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 #14358
    
----
commit 5419b859a7c8669122e8c65e88029a47556c36ee
Author: petermaxlee <petermaxlee@gmail.com>
Date:   2016-07-26T02:13:30Z

    [SPARK-16729][SQL] Spark should throw analysis exception for invalid casts to date type

----


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


Mime
View raw message