You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2021/04/01 22:15:33 UTC

[spark] branch branch-3.1 updated: [SPARK-34933][DOC][SQL] Remove the description that || and && can be used as logical operators from the document

This is an automated email from the ASF dual-hosted git repository.

srowen pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 3b57a66  [SPARK-34933][DOC][SQL] Remove the description that || and && can be used as logical operators from the document
3b57a66 is described below

commit 3b57a663430ab7049ff3b4a7253503ddba8883e4
Author: Kousuke Saruta <sa...@oss.nttdata.com>
AuthorDate: Thu Apr 1 17:14:41 2021 -0500

    [SPARK-34933][DOC][SQL] Remove the description that || and && can be used as logical operators from the document
    
    ### What changes were proposed in this pull request?
    
    This PR removes the description that `||` and `&&` can be used as logical operators from the migration guide.
    
    ### Why are the changes needed?
    
    At the `Compatibility with Apache Hive` section in the migration guide, it describes that `||` and `&&` can be used as logical operators.
    But, in fact, they cannot be used as described.
    AFAIK, Hive also doesn't support `&&` and `||` as logical operators.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    I confirmed that `&&` and `||` cannot be used as logical operators with both Hive's interactive shell and `spark-sql`.
    I also built the modified document and confirmed that the modified document doesn't break layout.
    
    Closes #32023 from sarutak/modify-hive-compatibility-doc.
    
    Authored-by: Kousuke Saruta <sa...@oss.nttdata.com>
    Signed-off-by: Sean Owen <sr...@gmail.com>
    (cherry picked from commit 8724f2b8b746f5742e8598ae33492e65fd4acc7c)
    Signed-off-by: Sean Owen <sr...@gmail.com>
---
 docs/sql-migration-guide.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/sql-migration-guide.md b/docs/sql-migration-guide.md
index 2894c25..75dafe4 100644
--- a/docs/sql-migration-guide.md
+++ b/docs/sql-migration-guide.md
@@ -874,7 +874,7 @@ Spark SQL supports the vast majority of Hive features, such as:
 * All Hive operators, including:
   * Relational operators (`=`, `<=>`, `==`, `<>`, `<`, `>`, `>=`, `<=`, etc)
   * Arithmetic operators (`+`, `-`, `*`, `/`, `%`, etc)
-  * Logical operators (`AND`, `&&`, `OR`, `||`, etc)
+  * Logical operators (`AND`, `OR`, etc)
   * Complex type constructors
   * Mathematical functions (`sign`, `ln`, `cos`, etc)
   * String functions (`instr`, `length`, `printf`, etc)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org