Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-9814

Add range sampling to SampleRecord

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Extensions
    • None

    Description

      It would be nice to be able to specify exactly which records or ranges of records are sampled from a FlowFile. For example if the first 5 lines of a comma-delimited file are free-text (meaning it's not technically a CSV file from NiFi's perspective as the first 5 lines do not constitute a header in this example), it would be handy to be able to exclude them by specifying a range filter of "6-" to say the 6th and every following record should be output.

      In that vein SampleRecord could have a "range sampling" strategy where the user could specify something like "2, 5-7, 25-" where the second, fifth, sixth, seventh, and every record from the twenty-fifth record on would be included in the outgoing flow file.

      Attachments

        Issue Links

          Activity

            People

              mattyb149 Matt Burgess
              mattyb149 Matt Burgess
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m