You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2019/03/13 22:18:00 UTC

[jira] [Commented] (NIFI-6117) DataTypeUtils.isBigIntTypeCompatible always returns false

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

Matt Burgess commented on NIFI-6117:
------------------------------------

Shouldn't we also be checking for Integer, Short, etc.?

> DataTypeUtils.isBigIntTypeCompatible always returns false
> ---------------------------------------------------------
>
>                 Key: NIFI-6117
>                 URL: https://issues.apache.org/jira/browse/NIFI-6117
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>            Priority: Major
>
> Because it checks null value wrongly:
> {code:java}
>     public static boolean isBigIntTypeCompatible(final Object value) {
>         return value == null && (value instanceof BigInteger || value instanceof Long);
>     }
> {code}
> should be:
> {code:java}
>     public static boolean isBigIntTypeCompatible(final Object value) {
>         return value != null && (value instanceof BigInteger || value instanceof Long);
>     }
> {code}



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