You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Charles Givre (Jira)" <ji...@apache.org> on 2023/02/21 03:59:00 UTC

[jira] [Created] (DRILL-8402) Add REGEXP_EXTRACT Function

Charles Givre created DRILL-8402:
------------------------------------

             Summary: Add REGEXP_EXTRACT Function
                 Key: DRILL-8402
                 URL: https://issues.apache.org/jira/browse/DRILL-8402
             Project: Apache Drill
          Issue Type: Improvement
          Components: Functions - Drill
    Affects Versions: 1.21.0
            Reporter: Charles Givre
            Assignee: Charles Givre
             Fix For: 1.21.0


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. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)