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

Disable vertical sharding when scalar function is present #6209

Closed
yeya24 opened this issue Mar 10, 2023 · 2 comments · Fixed by #6212
Closed

Disable vertical sharding when scalar function is present #6209

yeya24 opened this issue Mar 10, 2023 · 2 comments · Fixed by #6212

Comments

@yeya24
Copy link
Contributor

yeya24 commented Mar 10, 2023

What happened:

In Cortex, we have seen 2 bugs caused due to scalar function related to vertical sharding.

  1. bug: scalar function with aggregation cause 500 cortexproject/cortex#5207 scalar(sum by (xx) (metric)) will be shardable but we cannot handle scalar type response. And the result itself is scalar type and we don't have a way to merge.

  2. bug: vertical sharding doesn't work well with scalar function cortexproject/cortex#5205 Another issue but this time scalar is used to be the parameter.

What you expected to happen:

There is no bugs in vertical sharding caused by scalar. We should just disable scalar for vertical sharding to avoid any edge cases we might hit.

@yeya24
Copy link
Contributor Author

yeya24 commented Mar 11, 2023

@fpetkovski Would love to hear your opinion on this.

@fpetkovski
Copy link
Contributor

Makes sense to me. If there are known bugs caused by it, I let's go ahead and disable sharding or expressions that contain scalar 👍

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 a pull request may close this issue.

2 participants