Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the content in HistColl.ColID2IdxIDs stable #38457

Closed
time-and-fate opened this issue Oct 13, 2022 · 0 comments · Fixed by #38458
Closed

Make the content in HistColl.ColID2IdxIDs stable #38457

time-and-fate opened this issue Oct 13, 2022 · 0 comments · Fixed by #38458
Assignees
Labels
sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@time-and-fate
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant