You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by li...@apache.org on 2019/01/05 22:37:58 UTC
[spark] branch branch-2.4 updated: [SPARK-26545] Fix typo in
EqualNullSafe's truth table comment
This is an automated email from the ASF dual-hosted git repository.
lixiao pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 0751e02 [SPARK-26545] Fix typo in EqualNullSafe's truth table comment
0751e02 is described below
commit 0751e02e24f3c66d12be4a3123ce3ae1c1c1872d
Author: Kris Mok <kr...@databricks.com>
AuthorDate: Sat Jan 5 14:37:04 2019 -0800
[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 <kr...@databricks.com>
Signed-off-by: gatorsmile <ga...@gmail.com>
(cherry picked from commit 4ab5b5b9185f60f671d90d94732d0d784afa5f84)
Signed-off-by: gatorsmile <ga...@gmail.com>
---
.../org/apache/spark/sql/catalyst/expressions/predicates.scala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
index eedfbc2..365fcad 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
@@ -655,9 +655,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)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org