Skip to content

Commit

Permalink
[SPARK-1959] String "NULL" shouldn't be interpreted as null value
Browse files Browse the repository at this point in the history
JIRA issue: [SPARK-1959](https://issues.apache.org/jira/browse/SPARK-1959)

Author: Cheng Lian <[email protected]>

Closes apache#909 from liancheng/spark-1959 and squashes the following commits:

306659c [Cheng Lian] [SPARK-1959] String "NULL" shouldn't be interpreted as null value
  • Loading branch information
liancheng authored and pdeyhim committed Jun 25, 2014
1 parent 1b04476 commit 96fdfbb
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96fdfbb

Please sign in to comment.