Skip to content

Document custom sliding window timestamp column support #46

Open

Description

@usmanm
No description provided.

Activity

  1. MichaelXavier commented on May 22, 2018

    @MichaelXavier

    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.

  2. derekjn commented on May 22, 2018

    @derekjn
    Contributor

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions