Skip to content

ENH: windowed operations #66

Closed
Closed

Description

@sglyon

@quinnj -- I'm doing it -- I'm opening this issue :)

I think we can figure out ˙how to do this properly and I opened up the issue to give us a platform for bouncing around ideas.

I'm hoping to dig into SQLite.jl and Tables.jl sooner rather than later, so hopefully I'll be able to contribute to the discussion before too long.

Activity

  1. Sean1708 commented on Jul 3, 2015

    @Sean1708
    Contributor

    Hi @spencerlyon2, sounds like you've already been chatting to @quinnj about this, but just to be clear do you mean something similar to Postgres' window functions?

  2. sglyon commented on Jul 6, 2015

    @sglyon
    Author

    Hi @Sean1708, yes @quinnj and I chatted a bit about this.

    I honestly am not familiar with postgres' window functions, but from the quick look at the docs it seems like that would do the job for me.

    The use case I showed @quinnj was to compute sigma(p_{t+h} - p_t | \omega^t, W) as given by the following:

    screen shot 2015-07-06 at 1 03 52 pm

    Here q, sigma_q, r and sigma_r are all time series and would be columns in a table. h would be a constant integer, like 8 or 12.

  3. Sean1708 commented on Jul 11, 2015

    @Sean1708
    Contributor

    Hmm, I'll see if I can whip up a simple implementation in the next week or two. Then at least we'll have a starting point and we can build on it from there.

  4. Sean1708 commented on Aug 31, 2015

    @Sean1708
    Contributor

    I apologise that this has been such a long time coming, other priorities got in the way slightly. I whipped up a very simple implementation last weekend in #70, could you have a look at that and see if this is the kind of thing you were looking for please?

  5. quinnj commented on Sep 30, 2026

    @quinnj
    Member

    SQLite has supported SQL window functions (OVER (PARTITION BY ... ORDER BY ...)) since 3.25, and SQLite_jll ships a much newer version, so they work directly in DBInterface.execute queries. Closing this old issue.

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