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

Differentiate between a Distribution which statisfies any required Distribution vs. none. #86641

Open
msirek opened this issue Aug 23, 2022 · 1 comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-sql-queries SQL Queries Team

Comments

@msirek
Copy link
Contributor

msirek commented Aug 23, 2022

Currently, in the optimizer, RelExpr.ProvidedPhysical().Distribution indicates which regions a relation accesses. An empty distribution means the input can provide any distribution required by the consumer, but can also sometimes mean all regions are accessed (can provide no required distribution except the distribution which includes all regions). This issue is opened to differentiate between these cases in the code, and to also make sure a distribution is always built for all expressions (VALUES clauses, for example, which can be considered local to the gateway region).

Jira issue: CRDB-18850

@msirek msirek added C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-sql-queries SQL Queries Team labels Aug 23, 2022
Copy link

We have marked this issue as stale because it has been inactive for
18 months. If this issue is still relevant, removing the stale label
or adding a comment will keep it active. Otherwise, we'll close it in
10 days to keep the issue queue tidy. Thank you for your contribution
to CockroachDB!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior. T-sql-queries SQL Queries Team
Projects
Status: Backlog
Development

No branches or pull requests

2 participants