aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorCheng Lian <lian.cs.zju@gmail.com>2014-05-30 22:13:11 -0700
committerReynold Xin <rxin@apache.org>2014-05-30 22:13:26 -0700
commitb65e8f3bcaca18b919ff0b1e22515b2bed0c1ad5 (patch)
tree785d95b8b3a17f6aa97d44f7b3edd82c3480366b /sql/hive
parent3faa084fffdae559839af13a6c0e4c39ac81338f (diff)
downloadspark-b65e8f3bcaca18b919ff0b1e22515b2bed0c1ad5.tar.gz
spark-b65e8f3bcaca18b919ff0b1e22515b2bed0c1ad5.tar.bz2
spark-b65e8f3bcaca18b919ff0b1e22515b2bed0c1ad5.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 (cherry picked from commit cf989601d0e784e1c3507720e64636891fe28292) Signed-off-by: Reynold Xin <rxin@apache.org>
Diffstat (limited to 'sql/hive')
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala1
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