Skip to content

Make the content in HistColl.ColID2IdxIDs stable #38457

@time-and-fate

Description

@time-and-fate

Enhancement

As you can see in the logic of GenerateHistCollFromColumnInfo(), the content of HistColl.ColID2IdxIDs comes from the result of iterating through a map. However, in Go, we can't assure the order of iterating a map. This adds an unstable factor in the row count estimation logic.
We need to make it stable.

Metadata

Metadata

Assignees

Labels

sig/plannerSIG: Plannertype/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions