Skip to content
Prev Previous commit
Next Next commit
Update predicates.scala
  • Loading branch information
AngersZhuuuu committed Sep 23, 2021
commit 174ac717066e5fce2dcb5c0cd50c8d9149fe5580
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ case class InSet(child: Expression, hset: Set[Any]) extends UnaryExpression with
}

@transient private[this] lazy val hasNull: Boolean = hset.contains(null)
private[this] lazy val isNaN: Any => Boolean = child.dataType match {
@transient private[this] lazy val isNaN: Any => Boolean = child.dataType match {
case DoubleType => (value: Any) => java.lang.Double.isNaN(value.asInstanceOf[java.lang.Double])
case FloatType => (value: Any) => java.lang.Float.isNaN(value.asInstanceOf[java.lang.Float])
case _ => (_: Any) => false
Expand Down