小编paw*_*ong的帖子

使用GenericRecord在Avro中填充嵌套记录的问题

假设我有以下架构:

{
 "name" : "Profile",
 "type" : "record",
 "fields" : [
  { "name" : "firstName", "type" : "string" },
  { "name" : "address" , "type" : {
   "type" : "record",
   "name" : "AddressUSRecord",
   "fields" : [
    { "name" : "address1" , "type" : "string" },
    { "name" : "address2" , "type" : "string" },
    { "name" : "city" , "type" : "string" },
    { "name" : "state" , "type" : "string" },
    { "name" : "zip" , "type" : "int" …
Run Code Online (Sandbox Code Playgroud)

avro

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

标签 统计

avro ×1