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

UUID generation is not working avro 1.9 version

    XMLWordPrintableJSON

Details

    • avro-tools-1.9.0.jar, avro-tools

    Description

      Hi, 

       

      I've downloaded avro-tools 1.9 jar and trying to generate a java file from an avro schema using below command

       

      java -jar avro-tools-1.9.0.jar compile schema ./myschema.avsc  ./avro_java

       

      and have below schema in my .avsc file to generate a UUID field

      {
      "name": "myField",
      "type":

      { "type": "long", "logicalType": "uuid" }

      }

       

      But this is generating a long field instead of UUID type. Please suggest.

       

      Attachments

        Issue Links

          Activity

            People

              ferozedaud Feroze Daud
              raj2019 Raj G
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h 40m
                  2h 40m