From b251b81deef2a8908a74b7dd8f43097b3318189b Mon Sep 17 00:00:00 2001 From: Andres Taylor Date: Tue, 10 Dec 2024 13:28:10 +0100 Subject: [PATCH] test: update query to use valid column names Signed-off-by: Andres Taylor --- .../planbuilder/testdata/select_cases.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/go/vt/vtgate/planbuilder/testdata/select_cases.json b/go/vt/vtgate/planbuilder/testdata/select_cases.json index 9a2f596ff6c..a83948b1754 100644 --- a/go/vt/vtgate/planbuilder/testdata/select_cases.json +++ b/go/vt/vtgate/planbuilder/testdata/select_cases.json @@ -2190,10 +2190,10 @@ }, { "comment": "save column value to session - sharded", - "query": "select bar, 12, last_insert_id(foo) from user", + "query": "select col, 12, last_insert_id(intcol) from user", "plan": { "QueryType": "SELECT", - "Original": "select bar, 12, last_insert_id(foo) from user", + "Original": "select col, 12, last_insert_id(intcol) from user", "Instructions": { "OperatorType": "SaveToSession", "Offset": "_vt_column_2", @@ -2205,8 +2205,8 @@ "Name": "user", "Sharded": true }, - "FieldQuery": "select bar, 12, last_insert_id(foo) from `user` where 1 != 1", - "Query": "select bar, 12, last_insert_id(foo) from `user`", + "FieldQuery": "select col, 12, last_insert_id(intcol) from `user` where 1 != 1", + "Query": "select col, 12, last_insert_id(intcol) from `user`", "Table": "`user`" } ] @@ -2218,10 +2218,10 @@ }, { "comment": "save column value to session - unsharded", - "query": "select bar, 12, last_insert_id(foo) from unsharded", + "query": "select col, 12, last_insert_id(intcol) from unsharded", "plan": { "QueryType": "SELECT", - "Original": "select bar, 12, last_insert_id(foo) from unsharded", + "Original": "select col, 12, last_insert_id(intcol) from unsharded", "Instructions": { "OperatorType": "SaveToSession", "Offset": "_vt_column_2", @@ -2233,8 +2233,8 @@ "Name": "main", "Sharded": false }, - "FieldQuery": "select bar, 12, last_insert_id(foo) from unsharded where 1 != 1", - "Query": "select bar, 12, last_insert_id(foo) from unsharded", + "FieldQuery": "select col, 12, last_insert_id(intcol) from unsharded where 1 != 1", + "Query": "select col, 12, last_insert_id(intcol) from unsharded", "Table": "unsharded" } ]