Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1619

Handle correctly DATETIME field type on AvroRecord

Apply templateInsert Lucidchart DiagramXMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.1.17
    • None
    • None
    • All
    • Small

      The was a changed on AvroRecord will return a org.joda.time.DateTime type instead of a Long when logicalType is date/time related.

      This leads to such kind of exceptions:

      org.apache.beam.sdk.Pipeline$PipelineExecutionException: org.apache.avro.AvroRuntimeException: Unknown datum type org.joda.time.DateTime: 2018-12-25T00:00:00.000Z
      

      or even

      org.apache.beam.sdk.Pipeline$PipelineExecutionException: java.lang.IllegalArgumentException: long can't be converted to class java.time.ZonedDateTime
      

            emmanuel_g emmanuel gallois
            emmanuel_g emmanuel gallois
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: