我在拉丁猪中有以下关系,我需要将其存储到 avro-schema 文件中:
data = load 'data.dat' as (a: long, b: chararray, c: long);
...
STORE data INTO 'file' USING avroStorage();
但我需要数据采用以下格式:
Record 1:
{
"a" : {
"long" : 2
},
"complex" : {
"b" : {
"string" : "abc"
},
"c" : {
"long" : 3
}
}
}
...