티스토리 뷰

728x90

### first type is null

  {
     "name":"my_optional_date",
     "type":[ "null", {"type" : "long", "logicalType": "timestamp-millis"}], "default": null
  }

https://stackoverflow.com/questions/45581437/how-to-specify-converter-for-default-value-in-avro-union-logical-type-fields

 

How to specify converter for default value in Avro Union logical type fields?

I have the following Avro schema: { "namespace":"com.example", "type":"record", "name":"BuggyRecord", "fields":[ { "name":"my_mandatory_date", "type":{ ...

stackoverflow.com

{
    "type": "record",
    "name": "OrderBook",
    "namespace": "my.types",
    "doc": "Test order update",
    "fields": [
        {
            "name": "bids",
            "type": {
                "type": "array",
                "items": {
                    "type": "record",
                    "name": "OrderBookVolume",
                    "namespace": "my.types.bid",
                    "fields": [
                        {
                            "name": "price",
                            "type": "double"
                        },
                        {
                            "name": "volume",
                            "type": "double"
                        }
                    ]
                }
            }
        },
        {
            "name": "asks",
            "type": {
                "type": "array",
                "items": "my.types.bid.OrderBookVolume"
            }
        }
    ]
}

https://stackoverflow.com/questions/48100575/avro-multiple-record-of-same-type-in-single-schema

 

Avro multiple record of same type in single schema

I like to use the same record type in an Avro schema multiple times. Consider this schema definition { "type": "record", "name": "OrderBook", "namespace": "my.types", "doc": "Test ...

stackoverflow.com

https://toolslick.com/generation/metadata/avro-schema-from-json

 

Avro Schema From JSON Generator - Tool Slick

JavaScript Object Notation (JSON), pronounced as Jason, is the most common data interchange format on the web. Douglas Crockford first released the JSON specification in the early 2000s. It is a simple format that is easier to comprehend than XML. It is al

toolslick.com

 

728x90
댓글