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

ASF subversion and git services commented on NIFI-7714:
-------------------------------------------------------

Commit ca43615702eabddc6f7bbf280f0d181d7aa0b0d4 in nifi's branch 
refs/heads/main from Denes Arvay
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=ca43615 ]

NIFI-7714: QueryCassandra loses precision when converting timestamps to JSON

Updated the patch based on @tpalfy's review
Updated the patch based on @mattyb149's review
Rename DATE_FORMAT_PATTERN to JSON_TIMESTAMP_FORMAT_PATTERN
Changed convertToJsonStream method's visibility to package private.
Removed json prefix from timestamp-format-pattern property to make it more 
generic

This closes #4463.

Signed-off-by: Peter Turcsanyi <[email protected]>


> 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
>            Priority: Major
>          Time Spent: 1h 40m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to