You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Tamas Neumer (Jira)" <ji...@apache.org> on 2023/07/26 12:57:00 UTC
[jira] [Created] (NIFI-11860) Erroneously set decimalScale when resultSetScale is 0
Tamas Neumer created NIFI-11860:
-----------------------------------
Summary: Erroneously set decimalScale when resultSetScale is 0
Key: NIFI-11860
URL: https://issues.apache.org/jira/browse/NIFI-11860
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Affects Versions: 1.22.0
Reporter: Tamas Neumer
Hi,
In the [ResultSetRecordSet|https://github.com/apache/nifi/blob/a61add22c2507025a901e9ba753b3a6eb976d7e1/nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/ResultSetRecordSet.java#L328] if the resultScale is 0, then the decimal scale is set to the defaultScale. This however is inconsistent with the [JDBC Common's behavior|https://github.com/apache/nifi/commit/4fde9648dd8ec621ebcdf1bfd0b80786a0ff68da#diff-18c3d769d6220682bdc35a1c3136aea9ff74d323610c992daa22f7689ed3482dR585].
We believe that in the ResultSetRecordSet the same >= should be used.
BR,
Tamas
--
This message was sent by Atlassian Jira
(v8.20.10#820010)