我是 PipelineDB 和流分析的新手,
我有这两个 SQL 命令;
CREATE CONTINUOUS VIEW timing_hashtags WITH (sw = '1 minutes')
AS SELECT h, minute(arrival_timestamp) as minuteOfArrival, COUNT(*) as quantity
FROM hashtag_stream GROUP BY h, minuteOfArrival;
和
CREATE CONTINUOUS VIEW timing_hashtagsTTL WITH (ttl = '1 minute', ttl_column = 'minuteOfArrival')
AS SELECT h, minute(arrival_timestamp) as minuteOfArrival, COUNT(*) as quantity
FROM hashtag_stream GROUP BY h, minuteOfArrival;
当我在两个连续视图上运行以下查询时;
SELECT * FROM timing_hastags order by minuteOfArrival desc;
在timing_hastags 和timing_hastagsTTL 连续视图上结果是一样的;
有人可以帮我理解“ttl”和“sw”运算符在连续视图中的用法之间的区别。
谢谢你。