Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5858

Add REGEXP_CONTAINS, REGEXP_EXTRACT, REGEXP_EXTRACT_ALL, REGEXP_INSTR, REGEXP_REPLACE and REGEXP_SUBSTR functions (enabled in BigQuery library)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Resolved
    • None
    • 1.36.0
    • None
    • None

    Description

      Add support for REGEX_* string functions in BigQuery.

      Function descriptions:

      • REGEXP_CONTAINS: Returns TRUE if input value is a partial match for the regular expression.
      • REGEXP_EXTRACT: Returns the substring in input value that matches the regular expression. Returns NULL if there is no match.
      • REGEXP_EXTRACT_ALL: Returns an array of all substrings of input value that match the regular expression. Returns an empty array if there is no match.
      • REGEXP_INSTR: Returns the lowest 1-based position of a regular expression in an input value.
      • REGEXP_REPLACE: Returns a STRING where all substrings of input value that match regular expression are replaced with the input replacement.
      • REGEXP_SUBSTR: Synonym for REGEXP_EXTRACT, returns the substring in input value that matches the regular expression. Returns NULL if there is no match.

      More on these functions and their syntax may be found here: BigQuery Doc

      Attachments

        Issue Links

          Activity

            People

              jerin_john Jerin John
              jerin_john Jerin John
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: