Skip to content

Patch fetchIndexesViaSqlDB in go-mysql to not return invisible indexes #383

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

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

grodowski
Copy link
Member

@grodowski grodowski commented Mar 26, 2025

Solves an issue where ghostferry selects an invisible index as the shardingKeyIndexName.

The proper fix would be to patch go-mysql upstream to return a new Visible field in schema.Index, and then use it to filter the invisible ones in ghostferry. I think it's worth shipping like this first though.

@grodowski grodowski force-pushed the grodowski/patch-hide-invisible-index-hints branch from 406ad9d to 674ba76 Compare March 26, 2025 13:51
@grodowski grodowski marked this pull request as ready for review March 26, 2025 13:56
@grodowski grodowski requested a review from coding-chimp March 26, 2025 13:56
@grodowski grodowski merged commit 4de0930 into main Mar 26, 2025
9 checks passed
@grodowski grodowski deleted the grodowski/patch-hide-invisible-index-hints branch March 26, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants