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

feat: support count per sec/min/hr aggregation functions #198

Merged
merged 11 commits into from Jan 8, 2024

Conversation

wrn14897
Copy link
Contributor

@wrn14897 wrn14897 commented Jan 6, 2024

No description provided.

Copy link

changeset-bot bot commented Jan 6, 2024

🦋 Changeset detected

Latest commit: 2d7ceec

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/api Patch
@hyperdx/app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@wrn14897 wrn14897 changed the title feat: support count per sec/min/hr aggregate functions feat: support count per sec/min/hr aggregation functions Jan 6, 2024
? 'toFloat64(count()) as data'
: aggFn === AggFn.CountPerSec
? granularity
? SqlString.format('divide(count(), ?) as data', [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for now, but I tend to think these kind of duplicates are safer as CountPer('second') or equivalent. Maybe a TODO here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, this select clause would probably need some refactoring later

@kodiakhq kodiakhq bot merged commit f4360ed into main Jan 8, 2024
4 checks passed
@kodiakhq kodiakhq bot deleted the warren/support-count-rate-agg-fns branch January 8, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants