You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2019/05/22 04:53:09 UTC
[spark] branch branch-2.3 updated: [SPARK-27800][SQL][DOC] Fix
wrong answer of example for BitwiseXor
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-2.3 by this push:
new a73cb04 [SPARK-27800][SQL][DOC] Fix wrong answer of example for BitwiseXor
a73cb04 is described below
commit a73cb040cc24c4e6a0b4a56eff26af61d0ec618b
Author: Liu Xiao <hh...@gmail.com>
AuthorDate: Tue May 21 21:52:19 2019 -0700
[SPARK-27800][SQL][DOC] Fix wrong answer of example for BitwiseXor
## What changes were proposed in this pull request?
Fix example for bitwise xor function. 3 ^ 5 should be 6 rather than 2.
- See https://spark.apache.org/docs/latest/api/sql/index.html#_14
## How was this patch tested?
manual tests
Closes #24669 from alex-lx/master.
Authored-by: Liu Xiao <hh...@gmail.com>
Signed-off-by: Dongjoon Hyun <dh...@apple.com>
(cherry picked from commit bf617996aa95dd51be15da64ba9254f98697560c)
Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
.../org/apache/spark/sql/catalyst/expressions/bitwiseExpressions.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/bitwiseExpressions.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/bitwiseExpressions.scala
index 173481f..b3de3d4 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/bitwiseExpressions.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/bitwiseExpressions.scala
@@ -95,7 +95,7 @@ case class BitwiseOr(left: Expression, right: Expression) extends BinaryArithmet
examples = """
Examples:
> SELECT 3 _FUNC_ 5;
- 2
+ 6
""")
case class BitwiseXor(left: Expression, right: Expression) extends BinaryArithmetic {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org