-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if err := mergeByLabels(ctx, b.profiles.file, rows, m, by...); err != nil { | ||
columnName := "TotalValue" | ||
if b.meta.Version == 1 { | ||
columnName = "Samples.list.element.Value" | ||
} | ||
if err := mergeByLabels(ctx, b.profiles.file, columnName, rows, m, by...); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To double check: we haven't released v2 yet, so we don't need another version bump, right? My understanding is that main tip already writes blocks v2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v2 is only in dev
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Sort Profiles across row groups when flushing blocks * Refactor and properly tests parquet reader and writer * moar tests * Fixes bad uint32 to int32 conversion causing maxval to be min * add working tests back * add missing tests back * improve less function for profile rows * Adds total value per profile for building merge by series
This will allow to compute value per series without having to look at every sample.
I decided to go with v2 meta since we haven't released it yet so it will break in dev. Turns out the repeatedPageIterator also works for non-repeated column :).