Skip to content

Commit 7cdcf1c

Browse files
committed
[SPARK-9814][SQL] Fix comments of EqualNullSafe()
1 parent fed1c4e commit 7cdcf1c

File tree

1 file changed

+3
-2
lines changed
  • sql/core/src/main/scala/org/apache/spark/sql/sources

1 file changed

+3
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/sources/filters.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ abstract class Filter
3737
case class EqualTo(attribute: String, value: Any) extends Filter
3838

3939
/**
40-
* A filter that evaluates to `true` iff the attribute evaluates to a value
41-
* null safe and equal to `value`.
40+
* Performs equality comparison, similar to [[EqualTo]]. However, this differs from [[EqualTo]]
41+
* in that it returns `true` (rather than NULL) if both inputs are NULL, and `false`
42+
* (rather than NULL) if one of the input is NULL and the other is not NULL.
4243
*
4344
* @since 1.5.0
4445
*/

0 commit comments

Comments
 (0)