Mark Payne created NIFI-6753:
--------------------------------

             Summary: CSVRecordSetWriter quotes numeric values when Quote Mode 
set to Quote Non-Numeric Values
                 Key: NIFI-6753
                 URL: https://issues.apache.org/jira/browse/NIFI-6753
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Mark Payne
            Assignee: Mark Payne


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:
{code:java}
{
  "name": "myschema",
  "namespace": "test",
  "type": "record",
  "fields": [
      { "name": "name", "type": "string" },
      { "name": "age", "type": "int" }
  ]
} {code}
And the following JSON as a representation of a Record:
{code:java}
{
  "name": "John Doe", "age": 30
} {code}
The output looks like this:
{code:java}
"name","age"
"John Doe","30"{code}
When it should look like this:
{code:java}
"name","age"
"John Doe",30 {code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to