Flume
  1. Flume
  2. FLUME-722

RegexAllExtractor doesn't ignore empty groups

    Details

      Description

      Hi flume devs.

      I saw a bug when using RegexAllExtractor: line 94:

      if(names.get(grp-1) != "")

      { Attributes.setString(e, names.get(grp-1), val); }

      Please help to file a jira and correct it to use String.equal(), otherwise it doesn't ignore empty groups.

      (I don't think I can open a issue at cloudera jira.)

      Thanks,
      Mingjie

      1. FLUME-722.patch
        0.9 kB
        Mingjie Lai

        Activity

        Nicholas Verbeck created issue -
        Mingjie Lai made changes -
        Field Original Value New Value
        Attachment FLUME-722.patch [ 12489396 ]
        Jonathan Hsieh made changes -
        Assignee Nicholas Verbeck [ nerdynick ] Mingjie Lai [ mingjielai ]
        Jonathan Hsieh made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Jonathan Hsieh made changes -
        Fix Version/s v0.9.5 [ 12317558 ]
        Jonathan Hsieh made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Mingjie Lai
            Reporter:
            Nicholas Verbeck
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development