You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "John Gonyo (Jira)" <ji...@apache.org> on 2021/02/12 19:41:00 UTC

[jira] [Updated] (AVRO-3040) GenericWriter: Array requirement too restrictive

     [ https://issues.apache.org/jira/browse/AVRO-3040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Gonyo updated AVRO-3040:
-----------------------------
    Description: 
GenericWriter expects schema array properties to be an actual Array type, while Reflect and Specific writers expect array fields to be of IList<T>. 

For convenience, it would nice to support List, IList or Array types for array schema fields.  Changing GenericWriter code to look for an IList instead of Array it can support existing Array and allow List<T>/IList<T>, etc.  A small change with a large benefit to code using the library.

 

 

 

  was:
GenericWriter expects schema array properties to be an actual Array type, while Reflect and Specific writers expect array fields to be of IList<T>. 

For convenience, it would nice to support List, IList or Array types for array schema fields.

 

 


> GenericWriter: Array requirement too restrictive
> ------------------------------------------------
>
>                 Key: AVRO-3040
>                 URL: https://issues.apache.org/jira/browse/AVRO-3040
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>            Reporter: John Gonyo
>            Priority: Major
>
> GenericWriter expects schema array properties to be an actual Array type, while Reflect and Specific writers expect array fields to be of IList<T>. 
> For convenience, it would nice to support List, IList or Array types for array schema fields.  Changing GenericWriter code to look for an IList instead of Array it can support existing Array and allow List<T>/IList<T>, etc.  A small change with a large benefit to code using the library.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)