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

Alaksiej Ščarbaty updated NIFI-14671:
-------------------------------------
    Description: 
When using a long number in a RecordPath, a NumberFormatException occurs.

If the number is quoted, everything works as expected.

 

Repro:

Replace `49` with a long value, e.g. `1747611395208` in [this 
test|https://github.com/apache/nifi/blob/main/nifi-commons/nifi-record-path/src/test/java/org/apache/nifi/record/path/TestRecordPath.java#L2778].

  was:
When using a long number in a RecordPath, a NumberFormatException occurs.

Repro:

Replace `49` with a long value in [this 
test|https://github.com/apache/nifi/blob/main/nifi-commons/nifi-record-path/src/test/java/org/apache/nifi/record/path/TestRecordPath.java#L2778].
 The test passes if the long value is enclosed in single quotes.


> NumberFormatException when RecordPath expression contains a long number
> -----------------------------------------------------------------------
>
>                 Key: NIFI-14671
>                 URL: https://issues.apache.org/jira/browse/NIFI-14671
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Alaksiej Ščarbaty
>            Priority: Minor
>
> When using a long number in a RecordPath, a NumberFormatException occurs.
> If the number is quoted, everything works as expected.
>  
> Repro:
> Replace `49` with a long value, e.g. `1747611395208` in [this 
> test|https://github.com/apache/nifi/blob/main/nifi-commons/nifi-record-path/src/test/java/org/apache/nifi/record/path/TestRecordPath.java#L2778].



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to