TDengine
TDengine copied to clipboard
TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.
我的明细表字段如下:gather_time,total_users,utc_code,我想要根据不同的utc_code来判断当前时区是否到达0点,如果到达0点,则对total_user进行天聚合,如果不区分utc_code每个小时聚合会造成计算资源上的浪费。这种情况下sql要怎么写,select sum(total_users) from table where utc_code=getCurrentUtcCode(NOW) interval(1d) sliding(1h),getCurrentUtcCode()是我的udf,这样好像不行,这样某个utc_code的数据每个小时都会有一份,我只需要天级别的数据,如果把不同时间的数据分开到不同的表又很麻烦,请问有没有什么简介高效的方法
问题情景: 我建立了1个超表和超表的2000个子表; 持续写入测试中,发送show tables返回表数量为2122个 查看超表的tag的sqlSHOW TABLE TAGS FROm stb_mode1 549861283852189696>>E:\TIG.CSV;返回的也是重复2122条  [ [TIG.CSV](https://github.com/taosdata/TDengine/files/15126068/TIG.CSV) ](url)
ERROR: getTableDesNative() LN2859, failed to run command . code: 0x80000020, reason: some vnode/qnode/mnode(s) out of service ERROR: getTableDesNative() LN2859, failed to run command . code: 0x80000020, reason: some vnode/qnode/mnode(s) out...