[ 
https://issues.apache.org/jira/browse/IGNITE-21143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17801097#comment-17801097
 ] 

Evgeny Stanilovsky edited comment on IGNITE-21143 at 12/29/23 6:12 AM:
-----------------------------------------------------------------------

issue was solved in scope of calcite issue [1] and already merged into main.
[~akhitrin] i close this issue cause no additional work planned here. It will 
automatically fixed in ignite when appropriate calcite version was updated. If 
you disagree - feel free to change issue status.
[1] https://github.com/apache/calcite/pull/3601


was (Author: zstan):
issue was solved in scope of calcite issue [1] and already merged into main.
[~akhitrin] i close this issue cause no additional work planned here. It will 
automatically fixed in ignite when appropriate calcite version was updated.
[1] https://github.com/apache/calcite/pull/3601

> SQL: Backslash cannot be escaped in LIKE ESCAPE operator
> --------------------------------------------------------
>
>                 Key: IGNITE-21143
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21143
>             Project: Ignite
>          Issue Type: Bug
>          Components: sql
>    Affects Versions: 3.0.0-beta2
>            Reporter: Andrey Khitrin
>            Assignee: Evgeny Stanilovsky
>            Priority: Major
>              Labels: ignite-3, sql
>
> When using custom escape symbol in LIKE operator, we cannot escape backslash. 
> A error is raised here:
> {code:sql}
> sql-cli> select 'Dev_ops' like 'Dev#_ops' escape '#';          -- works as 
> expected
> ╔═════════╗
> ║ EXPR$0  ║
> ╠═════════╣
> ║ true    ║
> ╚═════════╝
> sql-cli> select 'Dev\ops' like 'Dev#\ops' escape '#';          -- doesn't work
> SQL query execution error
> Invalid escape sequence 'Dev#\ops', 3
> {code}
> In AI2 or some other DBMS, the latter query works without error:
> {code}
> select 'Dev\ops' like 'Dev#\ops' escape '#' -> true
> {code}



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

Reply via email to