我正在尝试在连接链中使用 Mapper 编解码器来转换如下所示的 JSON 对象:
{"test2":[
["column1","column2","column3"],
["16091", "449", "05302018"],
["16092", "705", "05302018"]
]}
到 EPL 类型。对我来说,它看起来像一个序列序列,所以我使用了
event test1 {
sequence<string> values;
}
event test2 {
sequence<test1> tests;
}
但这给了我错误
Unable to parse event test.1: Incorrect type in get (you asked for map but its' actually list)
为此我应该如何使用 Mapper 编解码器有什么想法吗?