Skip to content

Summing over sum of two rates gives error "multiple matcher groups are not supported in GetShards" #23410

Description

@sophiewaldman

Describe the bug
Error "multiple matcher groups are not supported in GetShards" when summing over sum of two rates.

To Reproduce
Loki version k316
Query: sum by (cluster,namespace)((rate({app="foo"}[1s]) + rate({app="bar"}[1s])))
Receive error failed to get shards for expression, got *status.statusError: rpc error: code = Code(500) desc = multiple matcher groups are not supported in GetShards. This is likely an internal bug as binary operations should be dispatched separately in planning: rpc error: code = Code(500) desc = multiple matcher groups are not supported in GetShards. This is likely an internal bug as binary operations should be dispatched separately in planning.

Expected behavior
The query should complete normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions