Skip to content

Commit

Permalink
[SPARK-26545] Fix typo in EqualNullSafe's truth table comment
Browse files Browse the repository at this point in the history
## 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>
(cherry picked from commit 4ab5b5b)
Signed-off-by: gatorsmile <gatorsmile@gmail.com>
  • Loading branch information
rednaxelafx authored and William Montaz committed Sep 26, 2019
1 parent 0d53cb2 commit 9b98103
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,9 @@ case class EqualNullSafe(left: Expression, right: Expression) extends BinaryComp
// +---------+---------+---------+---------+
// | <=> | TRUE | FALSE | UNKNOWN |
// +---------+---------+---------+---------+
// | TRUE | TRUE | FALSE | UNKNOWN |
// | FALSE | FALSE | TRUE | UNKNOWN |
// | UNKNOWN | UNKNOWN | UNKNOWN | TRUE |
// | TRUE | TRUE | FALSE | FALSE |
// | FALSE | FALSE | TRUE | FALSE |
// | UNKNOWN | FALSE | FALSE | TRUE |
// +---------+---------+---------+---------+
override def eval(input: InternalRow): Any = {
val input1 = left.eval(input)
Expand Down

0 comments on commit 9b98103

Please sign in to comment.