aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorprigarg <prigarg@adobe.com>2016-10-12 10:14:45 -0700
committerReynold Xin <rxin@databricks.com>2016-10-12 10:14:45 -0700
commitd5580ebaa086b9feb72d5428f24c5b60cd7da745 (patch)
tree95ee60a9d2347fff5e10e6e7c56bcf034035f92a /core/src/main
parent8880fd13ef2b581f9c7190e7e3e6d24bc11b4ef7 (diff)
downloadspark-d5580ebaa086b9feb72d5428f24c5b60cd7da745.tar.gz
spark-d5580ebaa086b9feb72d5428f24c5b60cd7da745.tar.bz2
spark-d5580ebaa086b9feb72d5428f24c5b60cd7da745.zip
[SPARK-17884][SQL] To resolve Null pointer exception when casting from empty string to interval type.
## What changes were proposed in this pull request? This change adds a check in castToInterval method of Cast expression , such that if converted value is null , then isNull variable should be set to true. Earlier, the expression Cast(Literal(), CalendarIntervalType) was throwing NullPointerException because of the above mentioned reason. ## How was this patch tested? Added test case in CastSuite.scala jira entry for detail: https://issues.apache.org/jira/browse/SPARK-17884 Author: prigarg <prigarg@adobe.com> Closes #15449 from priyankagargnitk/SPARK-17884.
Diffstat (limited to 'core/src/main')
0 files changed, 0 insertions, 0 deletions