Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-36100

Support ESCAPE in built-in function LIKE formally

    XMLWordPrintableJSON

Details

    Description

      Flink does not formally support ESCAPE in built-in function LIKE, but in some cases we do need it because '_' and '%' are interpreted as special wildcard characters, preventing their use in their literal sense.

      And currently, if we forcefully use ESCAPE characters, we will get unexpected results like the cases below.

      > SELECT 'TE_ST' LIKE '%E\_S%';
       FALSE
      > SELECT 'TE_ST' LIKE '%E\_S%' ESCAPE '\';
       ERROR
      

      Attachments

        Issue Links

          Activity

            People

              dylanhz Dylan He
              dylanhz Dylan He
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: