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

Add Record Separator property to CSVReader, causes Jackson parser to fail with Custom format

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • Extensions
    • None

    Description

      If "Custom" is set as the format in CSVReader when "Jackson CSV" is set for the CSV Parser property, a NullPointerException occurs.

      This is because there is no Record Separator property available for CSVReader, so the value is null when retrieved to configure the Jackson CSV parser. The Jackson CSV Parser code in NiFi should be updated to check for null and default to the newline character sequence, and the Record Separator property should be exposed in the CSVReader in order to ensure it is set (and can be configured by the user), as was done for the ConvertExcelToCSVProcessor.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h