Skip to content
Snippets Groups Projects
Commit cf989601 authored by Cheng Lian's avatar Cheng Lian Committed by Reynold Xin
Browse files

[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
parent 41bfdda3
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,6 @@ case class HiveTableScan( ...@@ -113,7 +113,6 @@ case class HiveTableScan(
} }
private def unwrapHiveData(value: Any) = value match { private def unwrapHiveData(value: Any) = value match {
case maybeNull: String if maybeNull.toLowerCase == "null" => null
case varchar: HiveVarchar => varchar.getValue case varchar: HiveVarchar => varchar.getValue
case decimal: HiveDecimal => BigDecimal(decimal.bigDecimalValue) case decimal: HiveDecimal => BigDecimal(decimal.bigDecimalValue)
case other => other case other => other
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment