Skip to content

Conversation

@owen-d
Copy link
Contributor

@owen-d owen-d commented Feb 8, 2023

While adding some tests to compliment #8448, I noticed some imprecision when determining whether a binary operation is shardable. Particularly,

  • It is unshardable when using on grouping or when using ignoring with a non-zero set of labels to ignore as this can mutate labels.
  • It is shardable when using ignoring () is effectively the zero value which cannot mutate labels.

@owen-d owen-d requested a review from a team as a code owner February 8, 2023 13:35
@owen-d owen-d changed the title Non shardable vector expr tests More precise sharding logic for on|ignoring Feb 8, 2023
Copy link
Contributor

@chaudum chaudum left a comment

Choose a reason for hiding this comment

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

Great find!

@owen-d owen-d force-pushed the non-shardable-vectorExpr-tests branch from 3ce0b2c to 1ea3be7 Compare February 8, 2023 14:04
@owen-d owen-d merged commit 7871ddd into grafana:main Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants