From 422101c382700f2478c186ff85a692447aa837a3 Mon Sep 17 00:00:00 2001 From: AilinKid <314806019@qq.com> Date: Thu, 8 Aug 2024 13:57:21 +0800 Subject: [PATCH] . Signed-off-by: AilinKid <314806019@qq.com> --- pkg/planner/core/indexmerge_path.go | 6 +++--- pkg/planner/core/indexmerge_unfinished_path.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/planner/core/indexmerge_path.go b/pkg/planner/core/indexmerge_path.go index e799ca9fb8939..56e1c9aa47070 100644 --- a/pkg/planner/core/indexmerge_path.go +++ b/pkg/planner/core/indexmerge_path.go @@ -1003,7 +1003,7 @@ func (ds *DataSource) generateIndexMerge4ComposedIndex(normalPathCnt int, indexM } } - mvp := ds.buildPartialPathUp4MVIndex(combinedPartialPaths, true, tableFilters, ds.TableStats.HistColl) + mvp := buildPartialPathUp4MVIndex(combinedPartialPaths, true, tableFilters, ds.TableStats.HistColl) ds.PossibleAccessPaths = append(ds.PossibleAccessPaths, mvp) return nil @@ -1085,7 +1085,7 @@ func (ds *DataSource) generateIndexMerge4MVIndex(normalPathCnt int, filters []ex path.IndexFilters = append(path.IndexFilters, clonedIdxFilters...) } - ds.PossibleAccessPaths = append(ds.PossibleAccessPaths, ds.buildPartialPathUp4MVIndex( + ds.PossibleAccessPaths = append(ds.PossibleAccessPaths, buildPartialPathUp4MVIndex( partialPaths, isIntersection, tableFilters, @@ -1097,7 +1097,7 @@ func (ds *DataSource) generateIndexMerge4MVIndex(normalPathCnt int, filters []ex } // buildPartialPathUp4MVIndex builds these partial paths up to a complete index merge path. -func (*DataSource) buildPartialPathUp4MVIndex( +func buildPartialPathUp4MVIndex( partialPaths []*util.AccessPath, isIntersection bool, remainingFilters []expression.Expression, diff --git a/pkg/planner/core/indexmerge_unfinished_path.go b/pkg/planner/core/indexmerge_unfinished_path.go index cf2d7ed4193b3..5fa3e967038f8 100644 --- a/pkg/planner/core/indexmerge_unfinished_path.go +++ b/pkg/planner/core/indexmerge_unfinished_path.go @@ -417,6 +417,6 @@ func buildIntoAccessPath( } // 3. Build the final access path - ret := ds.buildPartialPathUp4MVIndex(partialPaths, false, tableFilter, ds.TableStats.HistColl) + ret := buildPartialPathUp4MVIndex(partialPaths, false, tableFilter, ds.TableStats.HistColl) return ret }