You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2016/09/23 15:55:20 UTC

[jira] [Created] (SPARK-17647) SQL LIKE/RLIKE do not handle backslashes correctly

Xiangrui Meng created SPARK-17647:
-------------------------------------

             Summary: SQL LIKE/RLIKE do not handle backslashes correctly
                 Key: SPARK-17647
                 URL: https://issues.apache.org/jira/browse/SPARK-17647
             Project: Spark
          Issue Type: Bug
          Components: SQL
            Reporter: Xiangrui Meng


Try the following in SQL shell:

{code}
select '\\\\' like '%\\%';
select '\\\\' rlike '.*\\\\\\\\.*';
{code}

The first returned false and the second returned true. Both are wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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