我正在尝试动态创建多个流。例如。
{'event_type': 'temperature',
'users' : ['john', 'gary'],
'data': {'type': 'temperature',
'DeviceID': 'bcd', 'temperature': '45',
'timestamp': '2019-03-22T12:32:02.208223Z'
}
}
的可能值type
是['temperature','geolocation,'pressure']
。所需的输出是每个用户一个流和每个用户类型组合一个流
The following queries are what we expect (Code that creates the following)
select x,y,z from stream
insert into john
select x,y,z from stream
insert into gary
select x,y,z from stream
insert into john_temperature
select x,y,z from stream
insert into gary_temperature
etc.
- 这可以在 wso2 中做到吗?
我尝试使用https://docs.wso2.com/display/SP4xx/Complex+JSON+Processing 进行复杂的 json 处理,但没有明确提及 @source 语法。