Skip to content

Commit 2f8c8d4

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 #23461 from rednaxelafx/fix-typo. Authored-by: Kris Mok <kris.mok@databricks.com> Signed-off-by: gatorsmile <gatorsmile@gmail.com> (cherry picked from commit 4ab5b5b) Signed-off-by: gatorsmile <gatorsmile@gmail.com>
1 parent b1645cc commit 2f8c8d4

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
@@ -649,9 +649,9 @@ case class EqualNullSafe(left: Expression, right: Expression) extends BinaryComp
649649
// +---------+---------+---------+---------+
650650
// | <=> | TRUE | FALSE | UNKNOWN |
651651
// +---------+---------+---------+---------+
652-
// | TRUE | TRUE | FALSE | UNKNOWN |
653-
// | FALSE | FALSE | TRUE | UNKNOWN |
654-
// | UNKNOWN | UNKNOWN | UNKNOWN | TRUE |
652+
// | TRUE | TRUE | FALSE | FALSE |
653+
// | FALSE | FALSE | TRUE | FALSE |
654+
// | UNKNOWN | FALSE | FALSE | TRUE |
655655
// +---------+---------+---------+---------+
656656
override def eval(input: InternalRow): Any = {
657657
val input1 = left.eval(input)

0 commit comments

Comments
 (0)