Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3124

Java: toString serializer produces incorrect JSON fields for Temporal logical types

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.11.0
    • java
    • None

    Description

      When the java class has been generated using one of the Temporal logical types and then converted to JSON using toString(), the output field does is not a proper string:

       

      "operationTime": 2021-04-29T04:01:57.465Z
      

      This is an ISO-8601 compliant string, so it should be treated as a string:

       

      "operationTime": "2021-04-29T04:01:57.465Z"
      

      Attachments

        Issue Links

          Activity

            People

              kaliy Artur Kalimullin
              kaliy Artur Kalimullin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: