Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-8402

Add REGEXP_EXTRACT Function

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.21.0
    • 1.22.0
    • Functions - Drill
    • None

    Description

      This PR adds two UDFs to Drill:

      regexp_extract(<text>, <pattern>) which returns an array of strings which were captured by capturing groups in the regex.

      regexp_extract(<text>, <pattern>, <index>) returns the text captured by a specific capturing group. 

      Attachments

        Activity

          People

            cgivre Charles Givre
            cgivre Charles Givre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: