[jira] [Updated] (NIFI-5874) CSVRecordSetWriter inject transformed backslash sequences from input

2018-12-05 Thread Ed Berezitsky (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ed Berezitsky updated NIFI-5874:

Description: 
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

 
{code:java}
case,a,a1
tab,=\t=,-
{code}
 

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:
{code:java}
[{"case":"tab","a":"=\t=","a1":"=\t="}]{code}
while CSVRecordSetWriter will produce:
{code:java}
case,a,a1
tab,= =,= =
{code}
there is a actual "tab" in between "="

 

  was:
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

 
{code:java}
case,a,a1
tab,=\t=,-
{code}
 

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:
{code:java}
[{"case":"tab","a":"=\t=","a1":"=\t="}]{code}
while CSVRecordSetWriter will produce:

 
{code:java}
case,a,a1
tab,= =,= =
{code}
there is a actual "tab" in between "="

 


> CSVRecordSetWriter inject transformed backslash sequences from input
> 
>
> Key: NIFI-5874
> URL: https://issues.apache.org/jira/browse/NIFI-5874
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.8.0
>Reporter: Ed Berezitsky
>Priority: Major
>
> If there is backslash sequence (like \t, \n, etc) in the input, 
> CSVRecordSetWriter transforms them into actual characters (new line, tab, 
> etc) in output record.
> For example, input record:
>  
> {code:java}
> case,a,a1
> tab,=\t=,-
> {code}
>  
> Update Record with `/a1: /a` (just copy value from one field to another)
> JsonRecordSetWriter will produce:
> {code:java}
> [{"case":"tab","a":"=\t=","a1":"=\t="}]{code}
> while CSVRecordSetWriter will produce:
> {code:java}
> case,a,a1
> tab,= =,= =
> {code}
> there is a actual "tab" in between "="
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5874) CSVRecordSetWriter inject transformed backslash sequences from input

2018-12-05 Thread Ed Berezitsky (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ed Berezitsky updated NIFI-5874:

Description: 
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

 
{code:java}
case,a,a1
tab,=\t=,-
{code}
 

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:
{code:java}
[{"case":"tab","a":"=\t=","a1":"=\t="}]{code}
while CSVRecordSetWriter will produce:

 
{code:java}
case,a,a1
tab,= =,= =
{code}
there is a actual "tab" in between "="

 

  was:
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

 
{code:java}
case,a,a1
tab,=\t=,-
{code}
 

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:

[\\{"case":"tab","a":"=\t=","a1":"=\t="}]

while CSVRecordSetWriter will produce:

 
{code:java}
case,a,a1
tab,= =,= =
{code}
there is a actual "tab" in between "="

 


> CSVRecordSetWriter inject transformed backslash sequences from input
> 
>
> Key: NIFI-5874
> URL: https://issues.apache.org/jira/browse/NIFI-5874
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.8.0
>Reporter: Ed Berezitsky
>Priority: Major
>
> If there is backslash sequence (like \t, \n, etc) in the input, 
> CSVRecordSetWriter transforms them into actual characters (new line, tab, 
> etc) in output record.
> For example, input record:
>  
> {code:java}
> case,a,a1
> tab,=\t=,-
> {code}
>  
> Update Record with `/a1: /a` (just copy value from one field to another)
> JsonRecordSetWriter will produce:
> {code:java}
> [{"case":"tab","a":"=\t=","a1":"=\t="}]{code}
> while CSVRecordSetWriter will produce:
>  
> {code:java}
> case,a,a1
> tab,= =,= =
> {code}
> there is a actual "tab" in between "="
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-5874) CSVRecordSetWriter inject transformed backslash sequences from input

2018-12-05 Thread Ed Berezitsky (JIRA)


 [ 
https://issues.apache.org/jira/browse/NIFI-5874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ed Berezitsky updated NIFI-5874:

Description: 
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

 
{code:java}
case,a,a1
tab,=\t=,-
{code}
 

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:

[\\{"case":"tab","a":"=\t=","a1":"=\t="}]

while CSVRecordSetWriter will produce:

 
{code:java}
case,a,a1
tab,= =,= =
{code}
there is a actual "tab" in between "="

 

  was:
If there is backslash sequence (like \t, \n, etc) in the input, 
CSVRecordSetWriter transforms them into actual characters (new line, tab, etc) 
in output record.

For example, input record:

```

case,a,a1
period,=\t=,-

```

Update Record with `/a1: /a` (just copy value from one field to another)

JsonRecordSetWriter will produce:

```

[\{"case":"period","a":"=\t=","a1":"=\t="}]

```

while CSVRecordSetWriter will produce:

```

case,a,a1
period,= =,= =

```

there is a actual "tab" in between "="

 


> CSVRecordSetWriter inject transformed backslash sequences from input
> 
>
> Key: NIFI-5874
> URL: https://issues.apache.org/jira/browse/NIFI-5874
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.8.0
>Reporter: Ed Berezitsky
>Priority: Major
>
> If there is backslash sequence (like \t, \n, etc) in the input, 
> CSVRecordSetWriter transforms them into actual characters (new line, tab, 
> etc) in output record.
> For example, input record:
>  
> {code:java}
> case,a,a1
> tab,=\t=,-
> {code}
>  
> Update Record with `/a1: /a` (just copy value from one field to another)
> JsonRecordSetWriter will produce:
> [\\{"case":"tab","a":"=\t=","a1":"=\t="}]
> while CSVRecordSetWriter will produce:
>  
> {code:java}
> case,a,a1
> tab,= =,= =
> {code}
> there is a actual "tab" in between "="
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)