-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
What's the best way to aggregate on duration? #55
Comments
V4 or V5? |
Sorry, I should have mentioned that it's on V5. |
Weirdly... we already have pg-aggregates/src/AggregateSpecsPlugin.ts Line 92 in 975eefb
I think the pg-aggregates/src/AggregateSpecsPlugin.ts Line 75 in 975eefb
pg-aggregates/src/AggregateSpecsPlugin.ts Lines 30 to 35 in 975eefb
Looks like it should be relatively straightforward to fix this; just expand to |
Copy that! We'll submit a PR to add support. |
Hey @benjie!
Our team is trying to add support for aggregating on durations with an
interval
data type but noticed that's not supported by the library yet. Is it straightforward to add that support? If so, we can take a stab at implementing it and submit PR. Alternatively, we could switch to representing durations withfloat
instead if you recommend that.The text was updated successfully, but these errors were encountered: