Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document custom sliding window timestamp column support #46

Open
usmanm opened this issue Apr 22, 2016 · 2 comments
Open

Document custom sliding window timestamp column support #46

usmanm opened this issue Apr 22, 2016 · 2 comments

Comments

@usmanm
Copy link
Contributor

usmanm commented Apr 22, 2016

No description provided.

@MichaelXavier
Copy link

Is this functionality that exists? If I understand it correctly, this would allow you to use the sliding windows features of pipelinedb but you could feed archived data through the stream all at once.

@derekjn
Copy link
Contributor

derekjn commented May 22, 2018

@MichaelXavier no, this functionality isn't available yet. But you can still use your own timestamp columns to define sliding windows using the explicit syntax:

CREATE CONTINUOUS VIEW v AS
  SELECT count(*) FROM stream
 WHERE my_timestamp > clock_timestamp() - interval '1 hour';

This will create a sliding window over one hour with respect to the my_timestamp column.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants