taosdata/TDengine

does TDengine support stream processing on a specified subtable?

Open

#24,346 opened on 2024年1月5日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)C (5,002 forks)batch import
help wantedquestion

Repository metrics

Stars
 (24,849 stars)
PR merge metrics
 (平均マージ 1d 1h) (30d で 4 merged PRs)

説明

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

コントリビューターガイド