【TDengine 使用环境】
td cloud 托管的生产环境
【TDengine 版本】
TDengine TSDB v3.3.7.8
【操作系统以及版本】
不知道, 用的cloud生成的实例
【部署方式】容器/非容器部署
不知道
【遇到的问题:问题现象及影响】
流处理创建失败
问题1: sql方式创建失败
使用的公开课的示例脚本创建的流处理:
create stream power_stream into
test.power_stream_output_stb as
select
ts,
concat_ws(“.”,location,TBNAME) as meter_location,
current * voltage *cos(phase) as active_power,
current * voltage *sin(phase) as reactive_power
from test.meters
where voltage > 100
partition by tbname
保存之后报红:
syntax error near “create stream power_stream into test.power_stream_output_stb as select ts, concat_ws(”.“,location,tbname) as meter_location, current * voltage *cos(phase) as active_power, current * voltage *sin(phase) as reactive_power from test.meters where voltage > 100 partition by tbname) limit 1000”
问题2: Wizard方式创建失败
sql预览如下
CREATE STREAM power_stream TRIGGER WINDOW_CLOSE INTO `test`.`power_stream_output_stb ` AS SELECT `groupid`,`location` FROM `test`.`meters` WHERE voltage > 100 PARTITION BY tbname INTERVAL(1m)
点击创建之后提示: Database not specified





