spark git commit: [SPARK-16729][SQL] Throw analysis exception for invalid date casts

2016-07-27 Thread rxin
Repository: spark Updated Branches: refs/heads/branch-2.0 4e98e6905 -> 8bc2877d8 [SPARK-16729][SQL] Throw analysis exception for invalid date casts Spark currently throws exceptions for invalid casts for all other data types except date type. Somehow date type returns null. It should be

spark git commit: [SPARK-16729][SQL] Throw analysis exception for invalid date casts

2016-07-27 Thread wenchen
Repository: spark Updated Branches: refs/heads/master 5b8e848bb -> ef0ccbcb0 [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.