Skip to content

Conversation

@cheb0
Copy link
Member

@cheb0 cheb0 commented Dec 19, 2025

Description

Fixes #295


  • I have read and followed all requirements in CONTRIBUTING.md;
  • I used LLM/AI assistance to make this pull request;

@codecov-commenter
Copy link

codecov-commenter commented Dec 19, 2025

Codecov Report

❌ Patch coverage is 91.02564% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.25%. Comparing base (4c86707) to head (5bb3020).

Files with missing lines Patch % Lines
frac/processor/aggregator.go 80.95% 2 Missing and 2 partials ⚠️
proxy/search/ingestor.go 80.00% 1 Missing and 1 partial ⚠️
cmd/seq-db/seq-db.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   71.06%   71.25%   +0.18%     
==========================================
  Files         201      201              
  Lines       14773    14842      +69     
==========================================
+ Hits        10498    10575      +77     
+ Misses       3527     3519       -8     
  Partials      748      748              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cheb0 cheb0 force-pushed the 295-unique-count branch 3 times, most recently from 6b82090 to 10737f2 Compare December 22, 2025 08:42
}
if errMessage == consts.ErrTooManyFieldValues.Error() {
return nil, source, fmt.Errorf("store forbids aggregation request: %w", consts.ErrTooManyFieldValues)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to check new resp.Code later as well. on line 614-625

aggs[i] = seq.AggregatableSamples{
SamplesByBin: to,
NotExists: agg.NotExists,
ValuesPool: stringPool,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: seem like we can just do ValuesPool: agg.ValuesPool, and remove stringPool variable

}
for idx := range hist.Values {
h.Values[idx] = struct{}{}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: seems like we can use maps.Copy here

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.

Add UniqCount aggregation function

4 participants