测试了一下
原始消息
{
"msg": "hello",
"ts": ""
}
语句
SELECT
payload.msg as msg,
now_rfc3339() as ts
FROM
"t/#"
报错
Bad Arguments: {parse_error,badarg,[{erlang,list_to_existing_atom,["now_rfc3339"],[]},{emqx_rule_sqlparser,transform_select_field,2,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqlparser.erl"},{line,174}]},{emqx_rule_sqlparser,preprocess_field,2,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqlparser.erl"},{line,129}]},{emqx_rule_sqlparser,'-preprocess_columns/2-fun-0-',2,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqlparser.erl"},{line,118}]},{lists,foldl,3,[{file,"lists.erl"},{line,1263}]},{emqx_rule_sqlparser,preprocess,1,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqlparser.erl"},{line,106}]},{emqx_rule_sqlparser,parse_select,1,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqlparser.erl"},{line,61}]},{emqx_rule_sqltester,test,1,[{file,"/emqx-rel/_build/emqx/lib/emqx_rule_engine/src/emqx_rule_sqltester.erl"},{line,26}]}]}