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

Diego Sogari commented on AVRO-1270:
------------------------------------

Is this issue getting any attention at all? Do you have guidelines for 
implementing the feature, if one would be willing to do it?

> Emit default values from resolved reader during schema evolution/projection
> ---------------------------------------------------------------------------
>
>                 Key: AVRO-1270
>                 URL: https://issues.apache.org/jira/browse/AVRO-1270
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: c
>    Affects Versions: 1.7.4
>         Environment: avro-c, schema evolution, return default values for 
> fields not present in writer schema.
>            Reporter: Chris Laws
>            Priority: Minor
>
> Default values are not being returned by a resolved reader schema for fields 
> that were not present in the writer schema.
> The code that demonstrates this issue can be found in this gist 
> (https://gist.github.com/claws/5069264). It is a slightly modified version of 
> an example by Douglas Creager.
> The section of interest is the READER_SCHEMA_C where a new field is added (to 
> simulate schema evolution). In the main function the line:
> read_with_schema_resolution(FILENAME, READER_SCHEMA_C, "c");
> which is intended to display the default value for field 'c', as this field 
> is not present in the writer schema. This does not happen. Instead an error 
> is reported:
> Error: Reader field c doesn't appear in writer
> This error indicates that the avro-c implementation does not appear to 
> support returning default values.
> While posting about my avro problems on the avro user mailing list Douglas 
> Creager indicated that the avro-c implementation does not support this 
> functionality and suggested that a JIRA issue be raised.



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

Reply via email to