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
utils.AssertMatches(t, conn, "select id from t10 WHERE (col1, id) IN (('bar', 1), ('baz', 2), ('qux', 3), ('barbar', 4))", "[[INT64(1)]]")
566
+
utils.AssertMatches(t, conn, "select id from t10 WHERE (col1 = 'bar' AND id = 1) OR (col1 = 'baz' AND id = 2) OR (col1 = 'qux' AND id = 3) OR (col1 = 'barbar' AND id = 4)", "[[INT64(1)]]")
log.Infof("We will have no health data for the next new primary tablet after demoting the tablet: %v, so start loading tablets now", topotools.TabletIdent(th.Tablet))
519
-
hc.loadTabletsTrigger<-struct{}{}
519
+
// We want to trigger a loadTablets call, but if the channel is not empty
520
+
// then a trigger is already scheduled, we don't need to trigger another one.
521
+
// This also prevents the code from deadlocking as described in https://github.com/vitessio/vitess/issues/16994.
}), "select nv_lu_col, other from t2_lookup WHERE (nv_lu_col = 1 AND other = 'bar') OR (nv_lu_col = 2 AND other = 'baz') OR (nv_lu_col = 3 AND other = 'qux') OR (nv_lu_col = 4 AND other = 'brz') OR (nv_lu_col = 5 AND other = 'brz')")
3034
+
3035
+
require.NoError(t, err)
3036
+
3037
+
// We end up doing a scatter query here, so no queries are sent to the lookup table
3038
+
require.Len(t, sbclookup.Queries, 0)
3039
+
require.Len(t, sbcs[0].Queries, 1)
3040
+
require.Len(t, sbcs[1].Queries, 1)
3041
+
require.Len(t, sbcs[2].Queries, 1)
3042
+
require.Len(t, sbcs[3].Queries, 1)
3043
+
require.Len(t, sbcs[4].Queries, 1)
3044
+
require.Len(t, sbcs[5].Queries, 1)
3045
+
require.Len(t, sbcs[6].Queries, 1)
3046
+
require.Len(t, sbcs[7].Queries, 1)
3047
+
3048
+
for_, sbc:=rangesbcs {
3049
+
require.Equal(t, []*querypb.BoundQuery{{
3050
+
Sql: "select nv_lu_col, other from t2_lookup where nv_lu_col = 1 and other = 'bar' or nv_lu_col = 2 and other = 'baz' or nv_lu_col = 3 and other = 'qux' or nv_lu_col = 4 and other = 'brz' or nv_lu_col = 5 and other = 'brz'",
0 commit comments