-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark non-unique lookup vindex as backfill to ignore vindex selection (#…
…14227) Signed-off-by: Armand Parajon <[email protected]>
- Loading branch information
Showing
5 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4598,6 +4598,28 @@ | |
] | ||
} | ||
}, | ||
{ | ||
"comment": "name is in backfill vindex - not selected for vindex lookup", | ||
"query": "select * from customer where name = 'x'", | ||
"plan": { | ||
"QueryType": "SELECT", | ||
"Original": "select * from customer where name = 'x'", | ||
"Instructions": { | ||
"OperatorType": "Route", | ||
"Variant": "Scatter", | ||
"Keyspace": { | ||
"Name": "user", | ||
"Sharded": true | ||
}, | ||
"FieldQuery": "select * from customer where 1 != 1", | ||
"Query": "select * from customer where `name` = 'x'", | ||
"Table": "customer" | ||
}, | ||
"TablesUsed": [ | ||
"user.customer" | ||
] | ||
} | ||
}, | ||
{ | ||
"comment": "email vindex is costly than phone vindex - but phone vindex is backfiling hence ignored", | ||
"query": "select * from customer where email = '[email protected]' and phone = 123456", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters