Michael Gray created AVRO-2000:
----------------------------------
Summary: C-library defaults for resolved-writers and readers
Key: AVRO-2000
URL: https://issues.apache.org/jira/browse/AVRO-2000
Project: Avro
Issue Type: Bug
Components: c
Affects Versions: 1.8.1
Environment: Ubuntu 14, Centos7 and OSX
Reporter: Michael Gray
We are in need of having 'default' values work for the avro/lang/c library,
particularly on the resolved-writer side. We use avro for message
serialization on an internal pub/sub system, but we've seen that the default
values in schemas are ignored when a producer doesn't write this field.
AVRO-1270 is on the reader side and has been open for a few years. Avro-1797
also references that default values don't work at ALL in C.
In the 'resolved-writer.c' source code - latest code on master branch - there
are notes for the following:
'TODO: Handle default values!'
What's the process to get C default values supported. Is this something you
would be willing to do, or is this something we should try and fix ourselves?
Reference from AVRO-1797
Douglas Creager added a comment - 11/Feb/16 15:03
On the C side we don't support default values at all yet; AVRO-1270 is the
tracking bug for adding support for that.
Thanks!
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)