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
  • Loading branch information
liancheng committed May 30, 2014
1 parent 79fa8fd commit 306659c
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 306659c

Please sign in to comment.