NIFI-14226 Corrected ClassCastException being thrown in GenerateRecord when Avro logical types time-micros and/or timestamp-millis are used.#11007
Conversation
…d when Avro logical types time-micros and/or timestamp-millis are used.
|
@exceptionfactory For the case of but it caused exceptions in the JSON and XML tests. Stack traces below: XML I am puzzled why that fails since the string is local time. |
According to the stack trace, it is failing because a format pattern is not being provided, so the Converter is trying to parse the string as a number. |
|
Thanks for clarifying that! |
exceptionfactory
left a comment
There was a problem hiding this comment.
Thanks @dan-s1, the fix and new unit test for GenerateRecord look good. +1 merging
Summary
NIFI-14226
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
./mvnw clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation