Test EMQX Rule SQL
emqx_test_rule_sqlValidate EMQX rule SQL by dry-running it against a sample event to see if it matches and what columns it emits, without saving anything.
Instructions
Dry-run rule SQL against a sample event. Nothing is saved.
Use this to check a rule before creating it — it reports whether the event would match and what columns the rule would emit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | Rule SQL to evaluate, e.g. "SELECT payload FROM 'sensors/#'". | |
| topic | No | Topic of the sample event. | t/1 |
| payload | No | Payload of the sample event. | {} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||