-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[release-18.0] Add support for MultiEqual
opcode for lookup vindexes. (#16975)
#17038
Conversation
Signed-off-by: Arthur Schreiber <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Arthur Schreiber <[email protected]>
"comment": "Disjunction of conjunctions with 4 or more disjunctions", | ||
"query": "select id from user where (col = 'aa' AND name = 'bb') OR (col = 'cc' AND name = 'dd') OR (col = 'ee' AND name = 'ff') OR (col = 'gg' AND name = 'hh')", | ||
"plan": { | ||
"QueryType": "SELECT", | ||
"Original": "select id from user where (col = 'aa' AND name = 'bb') OR (col = 'cc' AND name = 'dd') OR (col = 'ee' AND name = 'ff') OR (col = 'gg' AND name = 'hh')", | ||
"Instructions": { | ||
"OperatorType": "Route", | ||
"Variant": "Scatter", | ||
"Keyspace": { | ||
"Name": "user", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select id from `user` where 1 != 1", | ||
"Query": "select id from `user` where col = 'aa' and `name` = 'bb' or col = 'cc' and `name` = 'dd' or col = 'ee' and `name` = 'ff' or col = 'gg' and `name` = 'hh'", | ||
"Table": "`user`" | ||
}, | ||
"TablesUsed": [ | ||
"user.user" | ||
] | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These queries generated MultiEqual
opcodes on v19 and later, but don't do that on v18. I had to decide on whether to remove these tests or to update them.
I decided to update them with the plans they generate on v18.
Signed-off-by: Arthur Schreiber <[email protected]>
a963e9a
to
2ad4c68
Compare
Because of the query planning differences between v18 and v19, I also had to go and update the executor test cases. |
Description
This is a backport of #16975