小编LSa*_*zel的帖子

AVRO schema with optional record

Hi folks I need to create AVRO schema for the following example ;

{ "Car" : { "Make" : "Ford" , "Year": 1990 , "Engine" : "V8" , "VIN" : "123123123" , "Plate" : "XXTT9O", 
"Accident" : { "Date" :"2020/02/02" , "Location" : "NJ" , "Driver" : "Joe" } ,
"Owner" :  { "Name" : "Joe" , "LastName" : "Doe" } } 
Run Code Online (Sandbox Code Playgroud)

Accident and Owner is optional objects and created schema also needs to validate following subset message;

{ "Car" …
Run Code Online (Sandbox Code Playgroud)

avro apache-kafka avro4s

1
推荐指数
1
解决办法
2858
查看次数

标签 统计

apache-kafka ×1

avro ×1

avro4s ×1