【TDengine 使用环境】
生产环境 /测试/ Poc/预生产环境
测试环境
【TDengine 版本】
3.3.8.1
【操作系统以及版本】
centos7
【部署方式】容器/非容器部署
容器
【集群节点数】
【集群副本数】
【描述业务影响】
【问题复现路径/shan】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
超级表如下
流语句如下:
create stream if not exists lute_iot_device.t31_daily_stats_stream_min_max_avg interval(1d) sliding (1d) from lute_iot_device.product_property_3yhuya partition by tbname stream_options (watermark (5m) | fill_history (1) | max_delay(10m)) into lute_iot_device.t31_daily_stats output_subtable (concat(‘t31_daily_’, lower(tbname))) ( ts, uid composite key, calculate_time, window_end, avg_temperature, max_temperature, min_temperature ) tags ( device_name varchar(64) as replace (tbname, ‘device_property_’, ‘’) ) as select _twstart as ts, uid as uid, cast(_tlocaltime / 1000000 as timestamp) as calculate_time, _twend as window_end, round(avg(temperature), 2) as avg_temperature, max( case when identifier = ‘high_temperature_alarm’ then temperature else null end ) as max_temperature, min( case when identifier = ‘low_temperature_alarm’ then temperature else null end ) as min_temperature from %%tbname where ts >= _twstart and ts <= _twend partition by device_name, uid;
我昨天是有数据的,但是流计算的结果如下:
有2个问题:
1.流计算的开始时间延迟很高但是我已经设置了max_delay时间
2.今天是11月4号为什么会把今天的数据也算出来
【资源配置】
【报错完整截图】



