From b99ebabe960b49792dd426509d68fbad73a3fda3 Mon Sep 17 00:00:00 2001 From: c-r-dev Date: Mon, 16 Dec 2024 15:07:32 -0500 Subject: [PATCH] restored existing filter_cases test cases Signed-off-by: c-r-dev --- .../planbuilder/testdata/filter_cases.json | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/go/vt/vtgate/planbuilder/testdata/filter_cases.json b/go/vt/vtgate/planbuilder/testdata/filter_cases.json index 3790fa0beec..4bf7a969a50 100644 --- a/go/vt/vtgate/planbuilder/testdata/filter_cases.json +++ b/go/vt/vtgate/planbuilder/testdata/filter_cases.json @@ -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", @@ -937,7 +937,7 @@ "Sharded": true }, "Values": [ - "'a'" + ":a" ], "Vindex": "name_user_map", "Inputs": [ @@ -964,7 +964,7 @@ "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`" } ] @@ -972,7 +972,8 @@ "TablesUsed": [ "user.user" ] - } + }, + "skip_e2e":true }, { "comment": "Merging subqueries should remove keyspace from query", @@ -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", @@ -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",