티스토리 뷰

공부

[avro] enum field null

승가비 2022. 7. 1. 01:49
728x90
{
    "type": "record",
    "name": "Test",
    "namespace": "com.acme",
    "fields": [{
            "name": "name",
            "type": "string"
        }, {
            "name": "age",
            "type": "int"
        }, {
            "name": "sex",
            "type": "string"
        }, {
            "name": "myenum",
            "type": ["null", {
                    "type": "enum",
                    "name": "Suit",
                    "symbols": ["SPADES", "HEARTS", "DIAMONDS", "CLUBS"]
                }
            ]
        }
    ]
}

https://stackoverflow.com/questions/50283736/avro-enum-field

 

Avro ENUM field

I am trying to create Union field in Avro schema and send corresponding JSON message with it but to have one of the fields - null. https://avro.apache.org/docs/1.8.2/spec.html#Unions What is exam...

stackoverflow.com

 

728x90
댓글
댓글쓰기 폼