You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: go/vt/vtgate/planbuilder/testdata/select_cases.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5452,11 +5452,11 @@
5452
5452
},
5453
5453
{
5454
5454
"comment": "Joining with a subquery that uses an aggregate column and an `EqualUnique` route with additional subquery can be merged together",
5455
-
"query": "SELECT music.id FROM music INNER JOIN (SELECT MAX(id) as maxt FROM music WHERE music.user_id = 5 AND music.foobar NOT IN (SELECT foobar FROM music_extra WHERE music_extra.user_id = 5)) other ON other.maxt = music.id",
5455
+
"query": "SELECT music.id FROM music INNER JOIN (SELECT MAX(id) as maxt FROM music WHERE music.user_id = 5 AND music.col NOT IN (SELECT col FROM user WHERE user.user_id = 5)) other ON other.maxt = music.id",
5456
5456
"plan": {
5457
5457
"Type": "Passthrough",
5458
5458
"QueryType": "SELECT",
5459
-
"Original": "SELECT music.id FROM music INNER JOIN (SELECT MAX(id) as maxt FROM music WHERE music.user_id = 5 AND music.foobar NOT IN (SELECT foobar FROM music_extra WHERE music_extra.user_id = 5)) other ON other.maxt = music.id",
5459
+
"Original": "SELECT music.id FROM music INNER JOIN (SELECT MAX(id) as maxt FROM music WHERE music.user_id = 5 AND music.col NOT IN (SELECT col FROM user WHERE user.user_id = 5)) other ON other.maxt = music.id",
0 commit comments