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

AVRO-1904: C: Allow record to have no fields. #159

Merged
merged 1 commit into from Nov 29, 2018

Conversation

walshb
Copy link
Contributor

@walshb walshb commented Nov 15, 2016

No description provided.

@johnsgill3
Copy link
Contributor

Looking at the Avro Specification it requires a record to have fields? What would the use case be to define a record without any fields?

@walshb
Copy link
Contributor Author

walshb commented May 16, 2017

The case I saw was in my colleague's code: a possible branch of a union -- the other possible record types had fields, but one of them didn't.

The real issue here is that the Java writer allows files with zero-length records to be created, but the C reader can't read them.

@dkulp dkulp merged commit b07dfbc into apache:master Nov 29, 2018
@walshb walshb deleted the avro-1904-record-no-fields branch November 30, 2018 09:37
iemejia referenced this pull request in iemejia/avro May 24, 2021
* Fix PCF for boolean #159

* Better PCF (more strips) and fix docstrings tests

* Small fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants