Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-722

RegexAllExtractor doesn't ignore empty groups

    XMLWordPrintableJSON

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

      Attachments

        1. FLUME-722.patch
          0.9 kB
          Mingjie Lai

        Activity

          People

            mingjielai Mingjie Lai
            nerdynick Nicholas Verbeck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: