You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ryan Skraba (Jira)" <ji...@apache.org> on 2022/01/03 11:08:00 UTC

[jira] [Comment Edited] (AVRO-3279) How many fields one can have in record?

    [ https://issues.apache.org/jira/browse/AVRO-3279?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17467930#comment-17467930 ] 

Ryan Skraba edited comment on AVRO-3279 at 1/3/22, 11:07 AM:
-------------------------------------------------------------

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.

I set this to *Improvement* --> I think the only action to be taken would be to clarify in the specification.


was (Author: ryanskraba):
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: Improvement
>          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)