You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Denes Arvay (Jira)" <ji...@apache.org> on 2020/08/07 08:48:00 UTC
[jira] [Created] (NIFI-7714) QueryCassandra loses precision when
converting timestamps to JSON
Denes Arvay created NIFI-7714:
---------------------------------
Summary: QueryCassandra loses precision when converting timestamps to JSON
Key: NIFI-7714
URL: https://issues.apache.org/jira/browse/NIFI-7714
Project: Apache NiFi
Issue Type: Bug
Reporter: Denes Arvay
Assignee: Denes Arvay
When QueryCassandra converts java.util.Date to JSON string value [1] the formatted string does not contain milliseconds.
JSON date fields should be formatted conforming to the ISO 8601 standard, i.e. {{yyyy-MM-dd HH:mm:ss.SSSZ}}
I suggest adding a new property to the QueryCassandra processor to be able to change the date format string.
[1] [https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/main/java/org/apache/nifi/processors/cassandra/QueryCassandra.java#L473]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)