Skip to content

bug: vertical sharding aggregation with absent displays shard by label #5204

Closed
@yeya24

Description

@yeya24

Describe the bug

    query_fuzz_test.go:169: case 0 results mismatch.
        instant query: count_values without (job) ("value", absent({series="7"}))
        res1: {series="7", value="1"} => 1 @[1678393035.187]
        res2: {__CORTEX_SHARD_BY__="CAEQAiIDam9i", series="7", value="1"} => 1 @[1678393035.187]
        {__CORTEX_SHARD_BY__="EAIiA2pvYg==", series="7", value="1"} => 1 @[1678393035.187]

Got this bug when running the PromQLsmith test.

Ran a query count_values without (job) ("value", absent({series="7"})). Here {series="7"} couldn't match anything so absent() is expected to return a series.

res1 is from non vertical sharding Cortex and it gives expected result. res2 runs vertical sharding Cortex and it gave me bad results and additional __CORTEX_SHARD_BY__ label.

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