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:09 UTC

[spark] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/spark.git


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

commit 8724f2b8b746f5742e8598ae33492e65fd4acc7c
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>
---
 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 4032871..b01e371 100644
--- a/docs/sql-migration-guide.md
+++ b/docs/sql-migration-guide.md
@@ -925,7 +925,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