Skip to content

Commit 306659c

Browse files
committed
[SPARK-1959] String "NULL" shouldn't be interpreted as null value
1 parent 79fa8fd commit 306659c

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)