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

TS.MRANGE GROUPBY multiple lables? #1512

Open
jameswest368 opened this issue Sep 26, 2023 · 2 comments
Open

TS.MRANGE GROUPBY multiple lables? #1512

jameswest368 opened this issue Sep 26, 2023 · 2 comments
Labels
question Further information is requested

Comments

@jameswest368
Copy link

Is is possible to perform a TS.RANGE GROUPBY with multiple labels?

So a group for every combination of the values of the specified label's values - like an SQL GROUP BY clause?

@LiorKogan
Copy link
Member

LiorKogan commented Sep 26, 2023

Multi-label GROUPBY is currently not supported, but it is on our roadmap with no specific date.

Plan:

TS.MRANGE / TS.MREVRANGE … [GROUPBY label[,label]… REDUCE reducer]

Splits time series into groups, each group contains time series that share the same values for the provided label names, then aggregates results in each group.

@LiorKogan LiorKogan added the question Further information is requested label Sep 26, 2023
@jameswest368
Copy link
Author

Fair enough - I'll fudge in some more labels (concatenations of the values of other labels) on the series to use the existing GROUPBY in the mean time.

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

No branches or pull requests

2 participants