Repository: spark Updated Branches: refs/heads/master 41bfdda3c -> cf989601d
[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 <[email protected]> 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 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/cf989601 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/cf989601 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/cf989601 Branch: refs/heads/master Commit: cf989601d0e784e1c3507720e64636891fe28292 Parents: 41bfdda Author: Cheng Lian <[email protected]> Authored: Fri May 30 22:13:11 2014 -0700 Committer: Reynold Xin <[email protected]> Committed: Fri May 30 22:13:11 2014 -0700 ---------------------------------------------------------------------- .../src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala | 1 - 1 file changed, 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/cf989601/sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala ---------------------------------------------------------------------- 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 f141139..d263c31 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
