Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2000

C-library defaults for resolved-writers and readers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.1
    • None
    • c
    • None
    • Ubuntu 14, Centos7 and OSX

    Description

      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!

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgray Michael Gray
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: