Skip to content

[Feature] Allow aggregating over multiple time series #5310

@lutter

Description

@lutter
Collaborator

Description

Aggregations right now can only be done over a single timeseries. It would be good to allow aggreagations from multiple timeseries. This won't be a problem as long as each aggregate only uses data from one timeseries, but could be more difficult if you can mix multiple sources in the same aggregate, e.g. @aggregate(fn: "sum" arg: "Source1.priceUSD * Source2.amount"), as that will require aligning the two timeseries, i.e., answering the question 'which entry in Source2 corresponds to this entry in Source1')

Activity

github-actions

github-actions commented on Oct 2, 2024

@github-actions

Looks like this issue has been open for 6 months with no activity. Is it still relevant? If not, please remember to close it.

PolEpie

PolEpie commented on Apr 11, 2025

@PolEpie

please allow more interval as 1min, 4h, 1 week 🙏 for ohcl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @lutter@PolEpie

        Issue actions

          [Feature] Allow aggregating over multiple time series · Issue #5310 · graphprotocol/graph-node