Skip to content

Commit

Permalink
restored existing filter_cases test cases
Browse files Browse the repository at this point in the history
Signed-off-by: c-r-dev <crangavajha1@bloomberg.net>
  • Loading branch information
c-r-dev committed Dec 16, 2024
1 parent a46a8ab commit b99ebab
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions go/vt/vtgate/planbuilder/testdata/filter_cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -925,10 +925,10 @@
},
{
"comment": "Single table equality route with val arg",
"query": "select id from user where name = 'a'",
"query": "select id from user where name = :a",
"plan": {
"QueryType": "SELECT",
"Original": "select id from user where name = 'a'",
"Original": "select id from user where name = :a",
"Instructions": {
"OperatorType": "VindexLookup",
"Variant": "Equal",
Expand All @@ -937,7 +937,7 @@
"Sharded": true
},
"Values": [
"'a'"
":a"
],
"Vindex": "name_user_map",
"Inputs": [
Expand All @@ -964,15 +964,16 @@
"Sharded": true
},
"FieldQuery": "select id from `user` where 1 != 1",
"Query": "select id from `user` where `name` = 'a'",
"Query": "select id from `user` where `name` = :a",
"Table": "`user`"
}
]
},
"TablesUsed": [
"user.user"
]
}
},
"skip_e2e":true
},
{
"comment": "Merging subqueries should remove keyspace from query",
Expand Down Expand Up @@ -2702,10 +2703,10 @@
},
{
"comment": "select * from samecolvin where col = :col",
"query": "select * from samecolvin where col = 'val'",
"query": "select * from samecolvin where col = :col",
"plan": {
"QueryType": "SELECT",
"Original": "select * from samecolvin where col = 'val'",
"Original": "select * from samecolvin where col = :col",
"Instructions": {
"OperatorType": "Route",
"Variant": "EqualUnique",
Expand All @@ -2714,17 +2715,18 @@
"Sharded": true
},
"FieldQuery": "select col from samecolvin where 1 != 1",
"Query": "select col from samecolvin where col = 'val'",
"Query": "select col from samecolvin where col = :col",
"Table": "samecolvin",
"Values": [
"'val'"
":col"
],
"Vindex": "vindex1"
},
"TablesUsed": [
"user.samecolvin"
]
}
},
"skip_e2e":true
},
{
"comment": "non unique predicate on vindex",
Expand Down

0 comments on commit b99ebab

Please sign in to comment.