Avro 架构枚举不允许空值

时间:2021-01-09 08:01:13

标签: avro avro-tools

我已经尝试了所有示例,但仍然无法正常工作。

{
"name": "businessType",
    "type":["null, {
        "type": "enum",
        "name": "type",
        "symbols": ["SPADES", "HEARTS", "DIAMONDS", "CLUBS"]
    }]
}

但是,如果我尝试将 businessType 设置为 null,则会引发错误。 Avro 版本:1.10.x

0 个答案:

没有答案