[ https://issues.apache.org/jira/browse/NIFI-4951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16402286#comment-16402286 ]
ASF subversion and git services commented on NIFI-4951: ------------------------------------------------------- Commit c056ede6cccb4a93426425fa0c5dbc02d555b6cc in nifi's branch refs/heads/master from [~derekstraka] [ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=c056ede ] NIFI-4951: Update convertToAvroObject to use the DataTypeUtils conversion function The feature allows users to convert from non-integral types to the correct underlying type. The original behavior is maintained; however, now simple conversions take place automatically for some logical types (date, time, and timestamp). This closes #2526. Signed-off-by: Derek Straka <de...@asterius.io> Signed-off-by: Mark Payne <marka...@hotmail.com> > convertToAvroObject does not utilize AvroTypeUtil when trying to convert > Date, Time, or Timestamps > -------------------------------------------------------------------------------------------------- > > Key: NIFI-4951 > URL: https://issues.apache.org/jira/browse/NIFI-4951 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Derek Straka > Priority: Major > > Currently, AvroTypeUtil::convertToAvroObject assumes that the logical types > have already been converted into their internal representation. While this > may sometimes be the case, it would be useful to allow String->Logical type > conversion. The feature can be added by using the appropriate > DataTypeUtils::to<Logical Type> method rather than blindly attempting to use > the underlying type. The DataTypeUtils already performs the integral type > parsing, so the existing functionality remains intact. -- This message was sent by Atlassian JIRA (v7.6.3#76005)