Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sharding of vector and time functions #2355

Merged
merged 2 commits into from
Jul 11, 2022
Merged

Conversation

colega
Copy link
Contributor

@colega colega commented Jul 8, 2022

What this PR does

Functions vector and time can't be sharded, as they produce same set of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default time() argument, like month(), were not propagating the shardeability checks properly.

Which issue(s) this PR fixes or relates to

None, internal.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@colega colega force-pushed the fix-vector-and-time-sharding branch 2 times, most recently from 62374a8 to b4c0aed Compare July 8, 2022 15:10
Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
@colega colega force-pushed the fix-vector-and-time-sharding branch from b4c0aed to 06ecf5a Compare July 8, 2022 15:36
Copy link
Contributor

@stevesg stevesg left a comment

Choose a reason for hiding this comment

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

Makes sense to me

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

nice

@stevesg stevesg merged commit 27154b3 into main Jul 11, 2022
@stevesg stevesg deleted the fix-vector-and-time-sharding branch July 11, 2022 08:56
stevesg pushed a commit that referenced this pull request Jul 11, 2022
Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
(cherry picked from commit 27154b3)
colega added a commit that referenced this pull request Jul 11, 2022
Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
(cherry picked from commit 27154b3)
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
colega added a commit that referenced this pull request Jul 11, 2022
Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
(cherry picked from commit 27154b3)
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
stevesg pushed a commit that referenced this pull request Jul 13, 2022
Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
(cherry picked from commit 27154b3)
masonmei pushed a commit to udmire/mimir that referenced this pull request Jul 25, 2022
…#2361)

Functions `vector` and `time` can't be sharded, as they produce same set
of series (with zero labels) and can't be concatenated later.

Additionally, functions that have a default `time()` argument,
like `month()`, were not propagating the shardeability checks properly.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
(cherry picked from commit 27154b3)
Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
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.

None yet

3 participants