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

Support for empty avro files #4

Open
jayt87 opened this issue Sep 12, 2017 · 1 comment
Open

Support for empty avro files #4

jayt87 opened this issue Sep 12, 2017 · 1 comment

Comments

@jayt87
Copy link

jayt87 commented Sep 12, 2017

I have some clues that this library does not support empty avro files (without body).
This causes problems when handling empty files captured from Event Hubs.

    public byte[] DecodeFixed(int size)
    {
        if (size <= 0)
        {
            throw new ArgumentOutOfRangeException("size");
        }

        var array = new byte[size];
        this.ReadAllRequiredBytes(array);
        return array;
    } 

image

@oluatte
Copy link

oluatte commented Sep 27, 2017

I'd like to second this as a real and urgent issue. As of now, it makes the event hub capture ---> data lake analytics use case very difficult. It doesn't make sense for such a vital use case to be hampered by an edge case.

It also doesn't help that we can't override the necessary methods on the decoder since it's internal and sealed.

Please address this issue.

Also: thank you for all your hard work on this library.

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