[
https://issues.apache.org/jira/browse/AVRO-3279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467930#comment-17467930
]
Ryan Skraba commented on AVRO-3279:
-----------------------------------
Hello! In my opinion, empty records are fine, but can have unintended
consequences. We actually ran into this situation once: reading infinitely
many zero-length records out of a zero-length buffer.
I'm not sure what the right thing to do would be for that case, except to avoid
using top-level schemas that exclusively serialize to zero bytes.
> How many fields one can have in record?
> ---------------------------------------
>
> Key: AVRO-3279
> URL: https://issues.apache.org/jira/browse/AVRO-3279
> Project: Apache Avro
> Issue Type: Bug
> Components: spec
> Reporter: Askar Safin
> Priority: Major
>
> The specification doesn't say how many fields one can have in a record, i. e.
> what is minimal count of fields. I think minimal count should be zero,
> because many programming languages allow empty records.
>
> In my homegrown Rust Avro lib I allow empty records, because they are
> perfectly compatible with Rust type system
--
This message was sent by Atlassian Jira
(v8.20.1#820001)