From 54ec330572099234a846be803adb375b72c28c33 Mon Sep 17 00:00:00 2001 From: fzzf678 <108643977+fzzf678@users.noreply.github.com> Date: Wed, 1 Mar 2023 17:51:47 +0800 Subject: [PATCH] Update plan_cache_test.go --- planner/core/plan_cache_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/planner/core/plan_cache_test.go b/planner/core/plan_cache_test.go index 07fc655316e6c..a867a7cd25a79 100644 --- a/planner/core/plan_cache_test.go +++ b/planner/core/plan_cache_test.go @@ -1004,8 +1004,9 @@ func TestPlanCacheSubquerySPMEffective(t *testing.T) { params []int }{ {"select * from t t1 where exists (select /*/ 1 from t t2 where t2.b < t1.b and t2.b < ?)", []int{1}}, // exist - {"select * from t t1 where exists (select /*/ b from t t2 where t1.a = t2.a and t2.b ? and t1.a = t2.a)", []int{1}}, + {"select * from t t1 where t1.a < (select /*/ sum(t2.a) from t t2 where t2.b = t1.b and t2.a > ?)", []int{1}}, } // hint