Skip to content

Commit 6a76187

Browse files
planner: code prepare for support OR list nested in AND list for mv index (#51780)
ref #51778
1 parent 0ed511a commit 6a76187

File tree

6 files changed

+471
-81
lines changed

6 files changed

+471
-81
lines changed

pkg/planner/cardinality/selectivity.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ func getMaskAndSelectivityForMVIndex(
744744
}
745745
// You can find more examples and explanations in comments for collectFilters4MVIndex() and
746746
// buildPartialPaths4MVIndex() in planner/core.
747-
accessConds, _ := CollectFilters4MVIndex(ctx, exprs, cols)
747+
accessConds, _, _ := CollectFilters4MVIndex(ctx, exprs, cols)
748748
paths, isIntersection, ok, err := BuildPartialPaths4MVIndex(ctx, accessConds, cols, coll.Indices[id].Info, coll)
749749
if err != nil || !ok {
750750
return 1.0, 0, false
@@ -1095,6 +1095,7 @@ var (
10951095
) (
10961096
accessFilters,
10971097
remainingFilters []expression.Expression,
1098+
accessTp int,
10981099
)
10991100
BuildPartialPaths4MVIndex func(
11001101
sctx context.PlanContext,

0 commit comments

Comments
 (0)