Closed jinfahua closed 4 years ago
{ "sql" : "create stream demo (temperature float, humidity bigint) WITH (FORMAT=\"JSON\", DATASOURCE=\"devices/+/messages\" )" }
light
{ "id": "rule1", "sql": "SELECT light FROM demo", "actions": [ { "mqtt": { "server": "tcp://${mqtt_srv}:1883", "topic": "devices/result", "qos": 1, "clientId": "demo_001" } } ] }
{ "sql" : "create stream demo (temperature float, humidity bigint, light bigint) WITH (FORMAT=\"JSON\", DATASOURCE=\"devices/+/messages\" )" }
Already supported, and close the issue.
light
field does not existed in previous stream definition.light
definition as in below.light
value still cannot be fetch.