[ https://issues.apache.org/jira/browse/SPARK-17647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15517636#comment-15517636 ]
Josh Rosen commented on SPARK-17647: ------------------------------------ On the other hand, running {code} select '\\\\' like '%\\%' {code} seems to return false in MySQL (because I think this is being interpreted as "any characters followed by a literal percent"), but it returns true in Postgres. I'm running postgres via {{psql}} and MySQL via MySQLWorkbench. > 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 > Labels: correctness > > Try the following in SQL shell: > {code} > select '\\\\' like '%\\%'; > select '\\\\' rlike '.*\\\\\\\\.*'; > {code} > The first returned false and the second returned true. Both are wrong. > cc: [~yhuai] [~joshrosen] -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org