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

Group by part of tag #2789

Open
pnikos opened this issue Nov 13, 2023 · 0 comments
Open

Group by part of tag #2789

pnikos opened this issue Nov 13, 2023 · 0 comments

Comments

@pnikos
Copy link
Contributor

pnikos commented Nov 13, 2023

Hi,

I have a field and some tags and I am trying to aggregate them per 10s using either stream (preferrable) or batch.
So far it is working fine, but now I need to aggregate using only a part of one of the tags.

E.g. (let's say these happened within the same 10s and I use mean to aggregate):

machine area CPU
A01 RF12 12
A02 XF93 08
A03 RF12 16
B01 AF02 14

I want to use only the first digit of the machine, so the result to be:

machine area CPU
A RF12 14
A XF93 08
B AF02 14

Any ideas on how this could be done?

Thank you!

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

No branches or pull requests

1 participant