graphprotocol / graph-node

Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
https://thegraph.com
Apache License 2.0
2.92k stars 984 forks source link

[Feature] Allow aggregating over multiple time series #5310

Open lutter opened 8 months ago

lutter commented 8 months ago

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')

github-actions[bot] commented 2 months ago

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