You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Dorian Bugeja (Jira)" <ji...@apache.org> on 2025/02/03 19:17:00 UTC

[jira] [Created] (NIFI-14226) GenerateRecord cannot cast Instant to Date

Dorian Bugeja created NIFI-14226:
------------------------------------

             Summary: GenerateRecord cannot cast Instant to Date
                 Key: NIFI-14226
                 URL: https://issues.apache.org/jira/browse/NIFI-14226
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 2.2.0
            Reporter: Dorian Bugeja


When using GenerateRecord with Avro schema defined for logicalType timestamp-millis,  error "Java.time.Instant cannot be cast to java.util.Date" is throw.

issue at FakerUtil.java:337
{code:java}
return ((Date) FakerUtils.getFakeData(DEFAULT_DATE_PROPERTY_NAME, faker)).getTime(); {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)