Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-36313

[CX] handle matching a literal backslash properly in LIKE

    XMLWordPrintable

Details

    • Untriaged
    • Unknown
    • CX Sprint 170, CX Sprint 171

    Description

      Fix matching a literal backslash in LIKE. As an example,

      SELECT "test\\string" LIKE "%\\\\%"

      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

      { "id": 1, "test_str": "hello world", "pattern": "h"} -- result was true which is correct
      { "id": 2, "test_str": "hello world", "pattern": "H"} -- result was false which is incorrect
       
      FROM ds SELECT regexp_contains(test_str, pattern, "i"); -- "i" flag means case insenstive
      

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-36313
          # Subject Branch Project Status CR V

          Activity

            People

              ali.alsuliman Ali Alsuliman
              ali.alsuliman Ali Alsuliman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty