[jira] [Commented] (IGNITE-21143) SQL: Backslash cannot be escaped in LIKE ESCAPE operator
[ https://issues.apache.org/jira/browse/IGNITE-21143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17801098#comment-17801098 ] Andrey Khitrin commented on IGNITE-21143: - Good, thank you! > 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)
[jira] [Commented] (IGNITE-21143) SQL: Backslash cannot be escaped in LIKE ESCAPE operator
[ https://issues.apache.org/jira/browse/IGNITE-21143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17801097#comment-17801097 ] Evgeny Stanilovsky commented on IGNITE-21143: - 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)