elodina / go-avro

Apache Avro for Golang
http://elodina.github.io/go-avro/
Apache License 2.0
129 stars 55 forks source link

Invalid default value for duration field of type long #86

Open StarpTech opened 7 years ago

StarpTech commented 7 years ago

Hi, why is 1 an invalid default value for a long type? For int its the same. Thanks!

{
    "name": "Packet",
    "type": "record",
    "fields": [{
                "name": "duration",
                "type": "long",
                "default": 1
    }]
}
E:\Repositorys\hemera-golang>go run codegen.go --schema schemas/packet.avsc --out foo.go
Invalid default value for duration field of type long
exit status 1
marcosrmendezthd commented 7 years ago

getting the same thing... :smile:

StarpTech commented 7 years ago

@serejja anybody ?

crast commented 7 years ago

This repository is unmaintained since April 2016, so I've created a fork that has already a couple bugfixes and 5-6 performance improvements, here: https://github.com/go-avro/avro

StarpTech commented 7 years ago

Hi @crast thanks for the info. Is this issue resolved in your fork?