[
https://issues.apache.org/jira/browse/NIFI-6753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16947694#comment-16947694
]
ASF subversion and git services commented on NIFI-6753:
-------------------------------------------------------
Commit e394f6683aaadc20f59ab467ab781e50c86ba958 in nifi's branch
refs/heads/master from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e394f66 ]
NIFI-6753: Fixed bug where all values being provided to the CSV Writer were
String objects, which resulted in the CSV Writer improperly quoting numeric
values when the schema indicates that the value is a number. Now, we will only
convert the value to a String if the value is not a Number and/or the schema
does not indicate a numeric ty type
Signed-off-by: Matthew Burgess <[email protected]>
This closes #3797
> 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
> Priority: Major
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)