You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Mitja P (Jira)" <ji...@apache.org> on 2021/07/15 08:05:00 UTC

[jira] [Created] (AVRO-3178) C++ does not support array default values

Mitja P created AVRO-3178:
-----------------------------

             Summary: C++ does not support array default values
                 Key: AVRO-3178
                 URL: https://issues.apache.org/jira/browse/AVRO-3178
             Project: Apache Avro
          Issue Type: Improvement
          Components: c++
    Affects Versions: 1.10.1
            Reporter: Mitja P


When upgrading schema we ran into an issue where we wanted new field which is a array of records to have default value of empty array. In c++ this does not seem to work or is not supported. When exporting schema with such default value to JSON the "default" clause is also missing for that field.

When reading using schema with default empty array field a EOF error is reported by library. I'm guessing this is because when resolving a default value for that field a `MemoryInputStream2` is created which is empty but is expected to have arrayStart values/markers.



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