taosdata/TDengine
View on GitHubdoes TDengine support stream processing on a specified subtable?
Open
#24,346 opened on Jan 5, 2024
help wantedquestion
Repository metrics
- Stars
- (24,849 stars)
- PR merge metrics
- (Avg merge 1d 1h) (4 merged PRs in 30d)
Description
CREATE STABLE IF NOT EXISTS point_data (
time timestamp,
val BINARY(64)
) TAGS (point_id bigint);
CREATE STREAM stream1
INTO point_data subtable('p10')
as
SELECT p1.time, p1.val+p2.val
FROM p1, p2 WHERE p1.time=p2.time;
例如这样,想要实时计算两个子表的和,存在另一个子表里,tdengine支持吗? 应该怎么写? 现在的写法报错:DB error: Unsupported stream query