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

Add REGEXP_EXTRACT and REGEXP_SUBSTR functions (enabled in BigQuery library)

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.36.0
    • None

    Description

      Add support for REGEXP_EXTRACT and REGEXP_SUBSTR functions from BigQuery.

      REGEXP_EXTRACT(value, regexp[, position[, occurrence]])
      Returns the substring in value that matches the regular expression regexp. Returns NULL if there is no match.

      • If the regular expression contains a capturing group ((...)), and there is a match for that capturing group, that match is returned. If there are multiple matches for a capturing group, the last match is returned.
      • If position is specified, the search starts at this position in value, otherwise it starts at the beginning of value.
      • If occurrence is specified, the search returns a specific occurrence of the regexp in value, otherwise returns the first match.

       
      REGEXP_SUBSTR(value, regexp[, position[, occurrence]])
      Synonym for REGEXP_EXTRACT

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: