avro icon indicating copy to clipboard operation
avro copied to clipboard

Avro codec and code generation for Go

Results 38 avro issues
Sort by recently updated
recently updated
newest added

The Confluent Avro registry produces very uninformative error messages. For example, when trying to upload an incompatible schema to a subject, the returned error says nothing about _why_ the schema...

We would find it useful to encode/decode the logical Decimal Avro type to and from Go. Currently we rely on an [external dependency](https://github.com/shopspring/decimal) to provide support in the absence of...

Hey @rogpeppe ! I tried to use some logical type like `time.Time` in the example you gave me in playground, but it failed. (https://play.golang.org/p/3XUf8IgChxN) Maybe it is not handled yet...

enhancement

The code to derive a default value from a Go struct is too naive. It doesn't cope when the JSON-formatted value isn't correct for Avro. Here's a test case that...

bug

Currently `avrogo` will never generate the type definitions if they have a `go.package` field, but that's not what we want if we're generating the types within that package itself.

bug

There are still quite a few holes in the testing: - out of bounds cases - fuzzing - zero length byte read - zero length string read - many error...

enhancement

This code panics because the `newAzTypeInfo` code doesn't recognize that a non-record type might have entries. ``` type R struct { A int } avro.Marshal(&R{13}) ``` ```--- FAIL: TestGoTypeEncodeWithPointer (0.00s)...

bug

Currently anonymous fields aren't supported in Go struct types. They probably should be.

enhancement

We could just ignore calls that fail, rather than panicking, reasoning that those types are going to fail when used anyway.

enhancement

Currently if a Go int type uses string values that aren't compatible with the Avro [name restrictions](https://avro.apache.org/docs/1.9.1/spec.html#names), it won't be treated as an enum, when it potentially could be if...

enhancement