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

vtgate: route using vindex for composite IN clause #7049

Merged
merged 4 commits into from
Nov 18, 2020

Conversation

sougou
Copy link
Contributor

@sougou sougou commented Nov 18, 2020

Fixes #6609

The details of the fix are explained in the issue.

  • Added a new Route opcode: SelectMultiEqual
  • The Values field for the opcode contains the list of vindex input values to route on
  • The plan builder uses a different code path for composite IN clause vs. the simple case.
  • The plan works for nested composites also.
  • If the operand values don't match or are non-trivial, we fall back to SelectScatter.

Still needs to be tested

Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize multi-value IN clauses referencing multi-column lookup vindexes
2 participants