Github user httfighter commented on the issue:

    https://github.com/apache/spark/pull/21826
  
    I did the following tests in mysql. 
         mysql> select "abc" || "def";
          +----------------+
          | "abc" || "def" |
         +----------------+
         |              0          |
         +----------------+
         mysql> select "abc"  "def";
         +--------+
          | abc    |
        +--------+
         | abcdef |
        +--------+
        mysql> select * from aa where id=1 || id=2;
       +------+------+
       | id   | name |
      +------+------+
      |    1 | sdf  |
      |    2 | ader |
     +------+------+
       mysql> select * from aa where id=1 or id=2;
      +------+------+
      | id   | name |
      +------+------+
      |    1 | sdf  |
      |    2 | ader |
      +------+------+
    It seems that it does not act as a string connector, but as an "or" 
operation. I don't know if my tests are correct. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to