[
https://issues.apache.org/jira/browse/NIFI-6117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16792218#comment-16792218
]
Koji Kawamura commented on NIFI-6117:
-------------------------------------
[~mattyb149] Yes, we should. Other numerical types uses isNumberTypeCompatible
method for that.
> 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
> Time Spent: 20m
> Remaining Estimate: 0h
>
> 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)