Skip to content

Commit ab428c7

Browse files
author
James Cor
committed
split tests
1 parent 76c0b7a commit ab428c7

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

enginetest/queries/join_queries.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,11 +1173,6 @@ var JoinScriptTests = []ScriptTest{
11731173
"create table t2 (i int primary key, j varchar(1), k int);",
11741174
"insert into t1 values (111111, 111111);",
11751175
"insert into t2 values (111111, 'a', 111111);",
1176-
1177-
"create table tt2 (i int primary key, j varchar(128) collate utf8mb4_0900_ai_ci);",
1178-
"create table tt1 (i int primary key, j varchar(128) collate utf8mb4_0900_ai_ci);",
1179-
"insert into tt1 values (1, 'ABCDE');",
1180-
"insert into tt2 values (1, 'abcde');",
11811176
},
11821177
Assertions: []ScriptTestAssertion{
11831178
{
@@ -1186,8 +1181,19 @@ var JoinScriptTests = []ScriptTest{
11861181
{111111, 111111, 111111, "a", 111111},
11871182
},
11881183
},
1184+
},
1185+
},
1186+
{
1187+
Name: "HashLookup on multiple columns with collations",
1188+
SetUpScript: []string{
1189+
"create table t1 (i int primary key, j varchar(128) collate utf8mb4_0900_ai_ci);",
1190+
"create table t2 (i int primary key, j varchar(128) collate utf8mb4_0900_ai_ci);",
1191+
"insert into t1 values (1, 'ABCDE');",
1192+
"insert into t2 values (1, 'abcde');",
1193+
},
1194+
Assertions: []ScriptTestAssertion{
11891195
{
1190-
Query: "select /*+ HASH_JOIN(tt1, tt2) */ * from tt1 join tt2 on tt1.i = tt2.i and tt1.j = tt2.j;",
1196+
Query: "select /*+ HASH_JOIN(t1, t2) */ * from t1 join t2 on t1.i = t2.i and t1.j = t2.j;",
11911197
Expected: []sql.Row{
11921198
{1, "ABCDE", 1, "abcde"},
11931199
},

0 commit comments

Comments
 (0)