Skip to content

bump thanos and update hints in Series call to respect project info passed by client#91

Open
Saumya40-codes wants to merge 1 commit intothanos-io:mainfrom
Saumya40-codes:respect-proj-hints-in-series-call
Open

bump thanos and update hints in Series call to respect project info passed by client#91
Saumya40-codes wants to merge 1 commit intothanos-io:mainfrom
Saumya40-codes:respect-proj-hints-in-series-call

Conversation

@Saumya40-codes
Copy link
Copy Markdown

@Saumya40-codes Saumya40-codes commented Apr 1, 2026

Towards #82

This pr bump thanos to commit thanos-io/thanos@38129bb
where storeAPIs were updated to propogate projection labels in PR (thanos-io/thanos#8625)

In series call it checks whether projections are set, if it is then updates Storage.SelectHints so it can be used in downstream with honorProjection already in-place. Where if its used, it only loads the labels set via ProjectionLabels []string and a __cf_series_hash__ is added with previous implementation.

…assed by client

upd

Signed-off-by: Saumya Shah <saumyabshah90@gmail.com>
@Saumya40-codes Saumya40-codes force-pushed the respect-proj-hints-in-series-call branch from 06ef764 to 68e4fb8 Compare April 1, 2026 04:27
Comment thread db/shard.go
Comment on lines +262 to +266
if v := seriesChunks[i].Lset.Get(schema.SeriesHashLabel); v != "" {
if len(v) == 8 {
h = binary.LittleEndian.Uint64([]byte(v))
}
}
Copy link
Copy Markdown
Author

@Saumya40-codes Saumya40-codes Apr 1, 2026

Choose a reason for hiding this comment

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

Was preferring hash label here (re: #82 (comment)) during dedup during projection, though won't seriesChunks[i].LsetHash will be unique for the series as we recalculate hash with __cf_series_hash__ present at https://github.com/thanos-io/thanos-parquet-gateway/blob/main/search/materialize.go#L77 ?

bit unsure here as when this check is required thus

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.

1 participant