Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

End of file reached #85

Open
mrauter opened this issue Jan 18, 2017 · 1 comment
Open

End of file reached #85

mrauter opened this issue Jan 18, 2017 · 1 comment

Comments

@mrauter
Copy link

mrauter commented Jan 18, 2017

What could be the problem if I get this error:

End of file reached

At:

decoder := avro.NewBinaryDecoder(message)
decodedRecord := avro.NewGenericRecord(avroSchema)
err := avroReader.Read(decodedRecord, decoder)

The messages will be decoded correctly by another avro decoder app (Java).

The schema contains only "string" type, but a lot of fields.

{
"type":"record",
"name":"schema",
"fields":[
{
"name":"prop1",
"type":"string"
},
{
"name":"prop2",
"type":"string"
},
...
]
}

@crast
Copy link
Contributor

crast commented Apr 25, 2017

Use a DataFileReader : https://godoc.org/gopkg.in/avro.v0#DataFileReader

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants