Skip to content

Grouping statistics by periods #12716

Answered by bobbyiliev
devopg asked this question in Q&A
May 26, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi there @devopg,

We did have a tracking issue for adding support forLEAD() and LAG() here: #10601

This is already fixed in #11891, #11785 but note that those will be available in future releases.

In the meantime as suggested here, you can use a temporal filter to create a view that has a sliding window of the last 24 hours of data and etc. this temporal filter will evolve continuously, and keep a finite amount of state, while elegantly sliding with time.

We've also had a similar discussion regarding window functions like LAG() and LEAD() in our community Slack here:

Window functions are difficult in incremental systems because one update can produce a huge amount of changes in output. Y…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@devopg
Comment options

@bobbyiliev
Comment options

Answer selected by devopg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants