Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4951

convertToAvroObject does not utilize AvroTypeUtil when trying to convert Date, Time, or Timestamps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • Extensions
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              derekstraka Derek Straka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: