taosdata/TDengine

does TDengine support stream processing on a specified subtable?

Open

#24.346 aperta il 5 gen 2024

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)C (5002 fork)batch import
help wantedquestion

Metriche repository

Star
 (24.849 star)
Metriche merge PR
 (Merge medio 1g 1h) (4 PR mergiate in 30 g)

Descrizione

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

Guida contributor