Skip to content
Permalink
Browse files

[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>
  • Loading branch information...
rednaxelafx authored and gatorsmile committed Jan 5, 2019
1 parent d618d27 commit 64fce5caafb42b50bd11707c9db96aa0b6244cdc
@@ -623,9 +623,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)

0 comments on commit 64fce5c

Please sign in to comment.
You can’t perform that action at this time.