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

pattern matching and regexp facilities and unnest

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.15.0
    • Fix Version/s: None
    • Component/s: Functions - Drill
    • Labels:
      None

      Description

      Although it is possible to do some of them self, adding some possibilities from pattern matching directly in DRILL

      • may be usefull,
      • would prevent (re)write them and check again and again,
      • would allow a quicker and more effective handling of Drill.

      Some propositions :

      • adding possibilities to regexp_replace (ignoreCase, replaceAll(currently)/replaceOnlyFirst ...)
      • regexp_matches (lighter and more consistent than using regexp_replace trick)
      • split_to_table
        SELECT split_to_table('Drill,baby,drill',',') AS mywords, 1 AS x;
        +---------+---+
        | mywords | x |
        +---------+---+
        | Drill   | 1 |
        | baby    | 1 |
        | drill   | 1 |
        +---------+---+
        
      • split_to_array
        SELECT split_to_array('Drill,baby,drill',',') AS mywords, 1 AS x;
        +---------------------------+---+
        | mywords                   | x |
        +---------------------------+---+
        | ["Drill","baby","drill"]  | 1 |
        +---------------------------+---+
        
      • ...

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benj641 benj
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: