diff options
author | petermaxlee <petermaxlee@gmail.com> | 2016-07-27 16:04:43 +0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2016-07-27 16:04:43 +0800 |
commit | ef0ccbcb07252db0ead8509e70d1a9a670d41616 (patch) | |
tree | ad6140f7ec5c17ab8c2316a2d7425253aaff3fcf /mllib/src | |
parent | 5b8e848bbfbc0c99a5faf758e40b188b0bbebb7b (diff) | |
download | spark-ef0ccbcb07252db0ead8509e70d1a9a670d41616.tar.gz spark-ef0ccbcb07252db0ead8509e70d1a9a670d41616.tar.bz2 spark-ef0ccbcb07252db0ead8509e70d1a9a670d41616.zip |
[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.
Author: petermaxlee <petermaxlee@gmail.com>
Closes #14358 from petermaxlee/SPARK-16729.
Diffstat (limited to 'mllib/src')
0 files changed, 0 insertions, 0 deletions