@@ -164,41 +164,6 @@ func TestPlannerIssueRegressions(t *testing.T) {
164164 " └─TableRowIDScan(Probe) cop[tikv] table:t3 keep order:false, stats:pseudo" ))
165165 }
166166
167- // ambiguous-expression-index-generated-column-substitution
168- {
169- tk := prepareSharedTestKit (t )
170- tk .MustExec (`create table space (
171- workspace_id binary(16) not null,
172- tenant_id varchar(100) not null,
173- id binary(16) not null,
174- name varchar(200) not null,
175- description varchar(500),
176- created_at datetime(6) not null,
177- updated_at datetime(6),
178- created_by varchar(128) not null,
179- updated_by varchar(128),
180- status enum('CURRENT','ARCHIVED','TRASHED') not null,
181- is_default boolean not null default false,
182- primary key (workspace_id, id)
183- )` )
184- tk .MustExec ("create index space_default_idx on space(is_default)" )
185- tk .MustExec ("create index space_workspace_id_lower_name_id_idx on space(workspace_id, (lower(name)), id)" )
186- tk .MustExec ("create index space_workspace_id_status_id_idx on space(workspace_id, status, id)" )
187- tk .MustExec ("create index space_workspace_id_status_lower_name_id_idx on space(workspace_id, status, (lower(name)), id)" )
188-
189- sql := `SELECT /*+ USE_INDEX(space, space_workspace_id_lower_name_id_idx, space_workspace_id_status_lower_name_id_idx) */
190- workspace_id, tenant_id, id, name, description, created_at, updated_at, created_by, updated_by, status, is_default
191- FROM space
192- WHERE workspace_id = x'b1c7f6cfae0f4d4791b5cf04f6a3beeb'
193- AND LOWER(name) LIKE '%backend%'
194- AND status = 'CURRENT'
195- ORDER BY LOWER(name), id
196- LIMIT 3`
197- plan := fmt .Sprint (tk .MustQuery ("explain format='plan_tree' " + sql ).Rows ())
198- require .Contains (t , plan , "IndexLookUp" )
199- require .Contains (t , plan , "index:space_workspace_id_status_lower_name_id_idx" )
200- }
201-
202167 // null-safe-join-with-union
203168 {
204169 tk := prepareSharedTestKit (t )
0 commit comments