I am new in PipelineDB and stream analytics,
I have these two SQL commands;
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;
AND
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;
When I run the following query on both continuous views;
SELECT * FROM timing_hastags order by minuteOfArrival desc;
Result is the same on both timing_hastags and timing_hastagsTTL continuous views;
Can somebody please help me to understand the difference between the usage of "ttl" and "sw" operator on continuous views.
Thank you.