Skip to content

Commit b65e8f3

Browse files
lianchengrxin
authored andcommitted
[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 (cherry picked from commit cf98960) Signed-off-by: Reynold Xin <[email protected]>
1 parent 3faa084 commit b65e8f3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/hiveOperators.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ case class HiveTableScan(
113113
}
114114

115115
private def unwrapHiveData(value: Any) = value match {
116-
case maybeNull: String if maybeNull.toLowerCase == "null" => null
117116
case varchar: HiveVarchar => varchar.getValue
118117
case decimal: HiveDecimal => BigDecimal(decimal.bigDecimalValue)
119118
case other => other

0 commit comments

Comments
 (0)