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

UUID generation is not working avro 1.9 version

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Tags:
      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

              • Assignee:
                Unassigned
                Reporter:
                raj2019 Raj G
              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated: