Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Add min/max to aggregate/aggregate2 #6

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments
Open

Add min/max to aggregate/aggregate2 #6

GoogleCodeExporter opened this issue Mar 15, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

It would be hot if aggregate and aggregate2 supported min/max calculations.

The current need looks something like:
- I have a weblog that I am appending to over time with each day's data.
- I only care about the last 30 days data.
- But - I need to know some event and every time it happens, the growing
weblog file updates that event's time to the current date so as to keep it
current in the 30 day window.

I can picture something like:

cat huge_weblog | aggregate2 -F Date-Field,Data-Field -M Date-Field -S
Data-Field-Counter | drop_older_than_30_day_data > huge_weblog

Where input data looks something like:

Date-Field,Data-Field,Data-Field-Counter
03-19-2009,1,3
03-20-2009,1,1

And output data looks something like:

Date-Field,Data-Field,Data-Field-Counter
03-20-2009,1,4



Original issue reported on code.google.com by jimrenw...@gmail.com on 19 Mar 2009 at 10:11

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

No branches or pull requests

1 participant