Skip to content

[Avro] Record Union #800

Description

@chernser

Description

record unions (see: src/testFixtures/avro/schemas/incompatible/union_two_records.json)

Avro allows to have:

{"name": "payload", "type": [{
        "type": "record",
        "name": "TypeA",
        "fields": [
          {"name": "label", "type": "string"}
        ]
      }, {
        "type": "record",
        "name": "TypeB",
        "fields": [
          {"name": "count", "type": "int"}
        ]
      }]

The only matching type in ClickHouse is JSON because it has no restrictions on value schema.
Dynamic and Variant is not a match for complex objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions