diff options
author | Takuya UESHIN <ueshin@happy-camper.st> | 2014-04-26 14:39:54 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-04-26 14:39:54 -0700 |
commit | 8e37ed6eb81687140b6cdb00f4ec609ec7ba9be1 (patch) | |
tree | e2c5356a28ac1369472aad8afab020c8843a4f9b /python | |
parent | e6e44e46e345640fd89be9f10cdc448b44d30cc1 (diff) | |
download | spark-8e37ed6eb81687140b6cdb00f4ec609ec7ba9be1.tar.gz spark-8e37ed6eb81687140b6cdb00f4ec609ec7ba9be1.tar.bz2 spark-8e37ed6eb81687140b6cdb00f4ec609ec7ba9be1.zip |
[SPARK-1608] [SQL] Fix Cast.nullable when cast from StringType to NumericType/TimestampType.
`Cast.nullable` should be `true` when cast from `StringType` to `NumericType` or `TimestampType`.
Because if `StringType` expression has an illegal number string or illegal timestamp string, the casted value becomes `null`.
Author: Takuya UESHIN <ueshin@happy-camper.st>
Closes #532 from ueshin/issues/SPARK-1608 and squashes the following commits:
065d37c [Takuya UESHIN] Add tests to check nullabilities of cast expressions.
f278ed7 [Takuya UESHIN] Revert test to keep it readable and concise.
9fc9380 [Takuya UESHIN] Fix Cast.nullable when cast from StringType to NumericType/TimestampType.
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions