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

[query] Drop series with no values in the given range #1684

Merged
merged 2 commits into from
May 31, 2019

Conversation

arnikola
Copy link
Collaborator

What this PR does / why we need it:

Follows on from #1682 to also remove series with no NaN-values in the given range, as they were still appearing as empty series.

Does this PR introduce a user-facing and/or backwards incompatible change?:

Will no longer add series with no non-NaN points in the given range

Does this PR require updating code package or user-facing documentation?:

NONE

@codecov
Copy link

codecov bot commented May 31, 2019

Codecov Report

Merging #1684 into master will decrease coverage by <.1%.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1684     +/-   ##
========================================
- Coverage    71.8%   71.8%   -0.1%     
========================================
  Files         970     970             
  Lines       81265   81268      +3     
========================================
- Hits        58423   58421      -2     
- Misses      19009   19012      +3     
- Partials     3833    3835      +2
Flag Coverage Δ
#aggregator 82.4% <ø> (ø) ⬆️
#cluster 85.7% <ø> (ø) ⬆️
#collector 63.9% <ø> (ø) ⬆️
#dbnode 79.9% <ø> (-0.1%) ⬇️
#m3em 73.2% <ø> (ø) ⬆️
#m3ninx 74% <ø> (ø) ⬆️
#m3nsch 51.1% <ø> (ø) ⬆️
#metrics 17.6% <ø> (ø) ⬆️
#msg 74.9% <ø> (+0.1%) ⬆️
#query 66.3% <100%> (ø) ⬆️
#x 85.8% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 68580c0...122dea4. Read the comment docs.

@@ -240,13 +240,21 @@ func parseQuery(r *http.Request) (string, error) {
return queries[0], nil
}

func filterNaNSeries(series []*ts.Series) []*ts.Series {
func filterNaNSeries(series []*ts.Series,
start time.Time,
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: rename to startInclusive and endInclusive

Copy link
Collaborator

@prateek prateek left a comment

Choose a reason for hiding this comment

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

LGTM

@arnikola arnikola merged commit bf88f68 into master May 31, 2019
@justinjc justinjc deleted the arnikola/drop-early-nans branch July 12, 2019 20:27
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

Successfully merging this pull request may close these issues.

2 participants