taosdata/TDengine

does TDengine support stream processing on a specified subtable?

オープン

#24,346 opened on 2024/01/05

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C (5,002 件のフォーク)batch import
help wantedquestion

Repository metrics

Stars
 (24,849 個のスター)
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

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