[ 
https://issues.apache.org/jira/browse/NIFI-8297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17303754#comment-17303754
 ] 

ASF subversion and git services commented on NIFI-8297:
-------------------------------------------------------

Commit eb0442cbe497313ca5402d981bf8b4e85bac3f09 in nifi's branch 
refs/heads/support/nifi-1.13 from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=eb0442c ]

NIFI-8297: Report incompatible value if it doesn't fit in an Integer

Signed-off-by: Pierre Villard <[email protected]>

This closes #4886.


> QueryRecord IllegalTypeConversionException
> ------------------------------------------
>
>                 Key: NIFI-8297
>                 URL: https://issues.apache.org/jira/browse/NIFI-8297
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.13.0
>            Reporter: Dorian Bugeja
>            Assignee: Matt Burgess
>            Priority: Major
>             Fix For: 1.14.0, 1.13.2
>
>         Attachments: image-2021-03-07-16-11-37-059.png, 
> image-2021-03-07-16-13-36-193.png
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> When calling NiFi endpoint 
> {code:java}
> nifi-api/flow/process-groups/${process_group}{code}
> and perform a QueryRecord filter on the flowfile such as 
> {code:java}
> select * from FLOWFILE where RPATH(processGroupFlow, '/id') = 'xxxx'{code}
> , we're getting an `IllegalTypeConversionException`, specifically 
> {code:java}
> java.io.IOException: 
> org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
> Cannot convert value [24854164900] of type class java.lang.Long to Integer 
> for field tasksDurationNanos as it causes an arithmetic overflow (the value 
> is too large, e.g.): org.apache.nifi.processor.exception.ProcessException: 
> IOException thrown from QueryRecord[id=a18936a4-a3de-1de9-1182-e762a05c6ac2]: 
> java.io.IOException: 
> org.apache.nifi.serialization.record.util.IllegalTypeConversionException: 
> Cannot convert value [24854164900] of type class java.lang.Long to Integer 
> for field tasksDurationNanos as it causes an arithmetic overflow (the value 
> is too large, e.g.){code}
> Issue not occurring in 1.12.1



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

Reply via email to