[ 
https://issues.apache.org/jira/browse/SPARK-45262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-45262:
-----------------------------------
    Labels: pull-request-available  (was: )

> Improve the description for `LIKE`
> ----------------------------------
>
>                 Key: SPARK-45262
>                 URL: https://issues.apache.org/jira/browse/SPARK-45262
>             Project: Spark
>          Issue Type: Documentation
>          Components: SQL
>    Affects Versions: 4.0.0
>            Reporter: Max Gekk
>            Assignee: Max Gekk
>            Priority: Major
>              Labels: pull-request-available
>
> The description of `LIKE` says:
> {code}
> ... in order to match "\abc", the pattern should be "\\abc"
> {code}
> but in Spark SQL shell:
> {code:sql}
> spark-sql (default)> SELECT c FROM t;
> \abc
> spark-sql (default)> SELECT c LIKE "\\abc" FROM t;
> [INVALID_FORMAT.ESC_IN_THE_MIDDLE] The format is invalid: '\\abc'. The escape 
> character is not allowed to precede 'a'.
> spark-sql (default)> SELECT c LIKE "\\\\abc" FROM t;
> true
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to