You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Ali Alsuliman (Jira)" <ji...@apache.org> on 2019/11/05 21:58:00 UTC

[jira] [Resolved] (ASTERIXDB-2651) Handle matching a literal backslash properly in LIKE

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

Ali Alsuliman resolved ASTERIXDB-2651.
--------------------------------------
    Resolution: Fixed

> Handle matching a literal backslash properly in LIKE
> ----------------------------------------------------
>
>                 Key: ASTERIXDB-2651
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2651
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: FUN - Functions
>    Affects Versions: 0.9.4
>            Reporter: Ali Alsuliman
>            Assignee: Ali Alsuliman
>            Priority: Major
>             Fix For: 0.9.5
>
>
> Fix matching a literal backslash in LIKE. As an example,
>   
> {code:java}
> SELECT "test\\string" LIKE "%\\\\%"
> {code}
> Also, fix the issue with a dynamic and changing pattern in regexp_*() functions (and functions using regex matcher class). Here is an example, for a dataset with the below tuples
> {code:java}
> { "id": 1, "test_str": "hello world", "pattern": "h"}
> { "id": 2, "test_str": "hello world", "pattern": "H"}
> FROM ds SELECT regexp_contains(test_str, pattern, "i"); -- "i" flag means case insenstive{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)