You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Dorian Bugeja (Jira)" <ji...@apache.org> on 2021/03/07 15:05:00 UTC
[jira] [Updated] (NIFI-8297) QueryRecord
IllegalTypeConversionException
[ https://issues.apache.org/jira/browse/NIFI-8297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dorian Bugeja updated NIFI-8297:
--------------------------------
Description:
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}
was:
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
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.)",
> 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
> Priority: Major
>
> 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}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)