Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Fix math operations on results of aggr#2306

Merged
kylebrandt merged 7 commits into
bosun-monitor:masterfrom
hermanschaaf:fix-aggr-tags
Sep 20, 2018
Merged

Fix math operations on results of aggr#2306
kylebrandt merged 7 commits into
bosun-monitor:masterfrom
hermanschaaf:fix-aggr-tags

Conversation

@hermanschaaf

Copy link
Copy Markdown
Contributor

This PR fixes a bug in aggr that causes math operations on the resulting series to fail. It also adds tests for such cases, and refactors the aggr tests to be table-driven.

Without this fix, math operations cause an error like expr: opentsdb: bad tag: color. The tests included here were failing before the fix with such an error.

CC @kylebrandt

Herman Schaaf added 3 commits September 11, 2018 10:31
Without this fix, math operations cause an error 'expr: opentsdb: bad tag: partner' to be returned
And refactor aggr tests to be table-driven
@hermanschaaf hermanschaaf changed the title Fix aggr tags Fix math operations on results of aggr Sep 11, 2018
@hermanschaaf

Copy link
Copy Markdown
Contributor Author

The tests are failing due to timeouts, doesn't seem to have any real issues.

@hermanschaaf

Copy link
Copy Markdown
Contributor Author

@kylebrandt how does this look to you? Would be nice to get the fix in 🙇

@kylebrandt

Copy link
Copy Markdown
Member

Looks like one of the test files just needs a gofmt

@hermanschaaf

Copy link
Copy Markdown
Contributor Author

Ah, was that the issue. Thanks, it's gofmt-ed now.

@hermanschaaf

Copy link
Copy Markdown
Contributor Author

Or not... maybe I need to upgrade to Go1.10 on this machine

@hermanschaaf

Copy link
Copy Markdown
Contributor Author

Alright, it's fixed now 👍 Sorry for the delay

@kylebrandt kylebrandt merged commit 1d6c31a into bosun-monitor:master Sep 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants