Skip to content

Support for circular references in AVDL (Avro IDL) #308

Open
@MichaelHirn

Description

@MichaelHirn

I understand that circular schema references (see example below) are supported for avsc schemas, however I was not able to get them working in avdl schemas; they will error when compiled to avsc schemas with the usual 'undefined type name' error, as the declaration order of records in avdl matters.

// this will not compile with avsc
record SampleNode {
  int count = 0;
  array<SamplePair> samples = [];
}
record SamplePair {
 string name;
 SampleNode node;
}

Judging from avro's issue tracker, support for circular references landed in v1.9 (source) - is there any way in avsc lib that supports circular references in avdl today or would avsc need to upgrade to avro v1.9 specification?

ref: #238

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions