Skip to content

Commit 4ab5b5b

Browse files
rednaxelafxgatorsmile
authored andcommitted
[SPARK-26545] Fix typo in EqualNullSafe's truth table comment
## What changes were proposed in this pull request? The truth table comment in EqualNullSafe incorrectly marked FALSE results as UNKNOWN. ## How was this patch tested? N/A Closes apache#23461 from rednaxelafx/fix-typo. Authored-by: Kris Mok <kris.mok@databricks.com> Signed-off-by: gatorsmile <gatorsmile@gmail.com>
1 parent 0037bbb commit 4ab5b5b

File tree

1 file changed

+3
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+3
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -653,9 +653,9 @@ case class EqualNullSafe(left: Expression, right: Expression) extends BinaryComp
653653
// +---------+---------+---------+---------+
654654
// | <=> | TRUE | FALSE | UNKNOWN |
655655
// +---------+---------+---------+---------+
656-
// | TRUE | TRUE | FALSE | UNKNOWN |
657-
// | FALSE | FALSE | TRUE | UNKNOWN |
658-
// | UNKNOWN | UNKNOWN | UNKNOWN | TRUE |
656+
// | TRUE | TRUE | FALSE | FALSE |
657+
// | FALSE | FALSE | TRUE | FALSE |
658+
// | UNKNOWN | FALSE | FALSE | TRUE |
659659
// +---------+---------+---------+---------+
660660
override def eval(input: InternalRow): Any = {
661661
val input1 = left.eval(input)

0 commit comments

Comments
 (0)