From b65e8f3bcaca18b919ff0b1e22515b2bed0c1ad5 Mon Sep 17 00:00:00 2001 From: Cheng Lian Date: Fri, 30 May 2014 22:13:11 -0700 Subject: [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 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 (cherry picked from commit cf989601d0e784e1c3507720e64636891fe28292) Signed-off-by: Reynold Xin --- sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala | 1 - 1 file changed, 1 deletion(-) (limited to 'sql/hive') 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 -- cgit v1.2.3