diff options
author | Cheng Lian <lian.cs.zju@gmail.com> | 2014-05-30 22:13:11 -0700 |
---|---|---|
committer | Reynold Xin <rxin@apache.org> | 2014-05-30 22:13:11 -0700 |
commit | cf989601d0e784e1c3507720e64636891fe28292 (patch) | |
tree | f0ff5600ebe356a0cc66b475a43a97d5889a75d7 /sql/hive | |
parent | 41bfdda3cc53b44b0fb2105533b7c0e1a69eb3bb (diff) | |
download | spark-cf989601d0e784e1c3507720e64636891fe28292.tar.gz spark-cf989601d0e784e1c3507720e64636891fe28292.tar.bz2 spark-cf989601d0e784e1c3507720e64636891fe28292.zip |
[SPARK-1959] String "NULL" shouldn't be interpreted as null value
JIRA issue: [SPARK-1959](https://issues.apache.org/jira/browse/SPARK-1959)
Author: Cheng Lian <lian.cs.zju@gmail.com>
Closes #909 from liancheng/spark-1959 and squashes the following commits:
306659c [Cheng Lian] [SPARK-1959] String "NULL" shouldn't be interpreted as null value
Diffstat (limited to 'sql/hive')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala index f141139ef4..d263c31296 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala @@ -113,7 +113,6 @@ case class HiveTableScan( } private def unwrapHiveData(value: Any) = value match { - case maybeNull: String if maybeNull.toLowerCase == "null" => null case varchar: HiveVarchar => varchar.getValue case decimal: HiveDecimal => BigDecimal(decimal.bigDecimalValue) case other => other |