taosdata / TDengine

TDengine is an open source, high-performance, cloud native time-series database optimized for Internet of Things (IoT), Connected Cars, Industrial IoT and DevOps.

Home Page:https://tdengine.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

When I create a stream with an interval of more than 1 hour, the SQL statement succeeds but data is not written to the target supertable

leemb01 opened this issue · comments

创建流计算:
企业微信截图_17164474384391

已创建stream:
图片

创建流式计算的表:
图片
表中存在数据,每条数据间隔1s:
Uploading 图片.png…

流式计算结果写入的表:
图片
表中无数据:
图片

版本号是?

麻烦提供一下建表语句和流式计算的文本吧。

麻烦提供一下建表语句和流式计算的文本吧。

表和数据是使用taosBenchmark建的
{
"filetype": "insert",
"cfgdir": "/etc/taos",
"host": "192.168.xxx.xxx",
"port": 6030,
"user": "root",
"password": "taosdata",
"connection_pool_size": 8,
"thread_count": 4,
"create_table_thread_count": 4,
"result_file": "./insert_res.txt",
"confirm_parameter_prompt": "no",
"num_of_records_per_req": 10000,
"prepared_rand": 10000,
"chinese": "no",
"escape_character": "yes",
"continue_if_fail": "no",
"databases": [
{
"dbinfo": {
"name": "continue_test",
"drop": "yes",
"vgroups": 4,
"precision": "ms"
},
"super_tables": [
{
"name": "devices",
"child_table_exists": "no",
"childtable_count": 100,
"childtable_prefix": "d",
"auto_create_table": "no",
"batch_create_tbl_num": 5,
"data_source": "rand",
"insert_mode": "taosc",
"non_stop_mode": "no",
"line_protocol": "line",
"insert_rows": 640000,
"childtable_limit": 0,
"childtable_offset": 0,
"interlace_rows": 0,
"insert_interval": 0,
"partial_col_num": 0,
"timestamp_step": 1000,
"start_timestamp": "2024-04-16 00:00:00.000",
"sample_format": "csv",
"sample_file": "./sample.csv",
"use_sample_ts": "no",
"tags_file": "",
"columns": [
{"type": "DOUBLE", "name": "current", "count": 1, "max": 100, "min": 1 },
{ "type": "INT", "name": "voltage", "max": 200, "min": 1 },
{ "type": "FLOAT", "name": "phase", "max": 1, "min": 0 }
],
"tags": [
{"type": "TINYINT", "name": "groupid", "max": 10, "min": 1},
{"type": "BINARY", "name": "location", "len": 16,
"values": ["San Francisco", "Los Angles", "San Diego",
"San Jose", "Palo Alto", "Campbell", "Mountain View",
"Sunnyvale", "Santa Clara", "Cupertino"]
}
]
}
]
}
]
}

流式计算:
create stream if not exists stream_test trigger at_once ignore expired 0 fill_history 1 ignore update 0 into stream_test_data as select _wstart as wstart, _wend as wend, avg(current) as result from d1 interval (2h);