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

CSVRecordSetWriter quotes numeric values when Quote Mode set to Quote Non-Numeric Values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.10.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      When the CSVRecordSetWriter is configured with a quote mode of "Quote Non-Numeric Values" it still quotes the numeric values. For example, given the following schema:

      {
        "name": "myschema",
        "namespace": "test",
        "type": "record",
        "fields": [
            { "name": "name", "type": "string" },
            { "name": "age", "type": "int" }
        ]
      } 

      And the following JSON as a representation of a Record:

      {
        "name": "John Doe", "age": 30
      } 

      The output looks like this:

      "name","age"
      "John Doe","30"

      When it should look like this:

      "name","age"
      "John Doe",30 

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                markap14 Mark Payne
                Reporter:
                markap14 Mark Payne
              • Votes:
                0 Vote for this issue
                Watchers:
                3 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