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

support capture groups in REGEXP_REPLACE

    XMLWordPrintableJSON

Details

    Description

      For example, I would expect this query

      select REGEXP_REPLACE('ERR1,ERR2', '([^,]+)', 'AA$1AA'); 

      to produce

      AAERR1AA,AAERR2AA

      but instead it produces

      AA$1AA,AA$1AA

      With FLINK-9990 support was added for REGEXP_EXTRACT, which does provide access to the capture groups, but for many use cases supporting this in the way that users expect, in REGEXP_REPLACE, would be more natural and convenient.

      Attachments

        Issue Links

          Activity

            People

              jeyhunkarimov Jeyhun Karimov
              danderson David Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: