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

The need_restored_data for multi value index should return false #15531

Closed
YangKeao opened this issue Sep 5, 2023 · 3 comments
Closed

The need_restored_data for multi value index should return false #15531

YangKeao opened this issue Sep 5, 2023 · 3 comments

Comments

@YangKeao
Copy link
Member

YangKeao commented Sep 5, 2023

In tidb, need_restored_data for multi value index should return false, as the tp will become JSON when it's marked as an array. I'm not sure whether it's good to modify get_tp() to return json for every type, but at least we should ignore the RestoredData for json, or it will report an error.

@YangKeao YangKeao added the type/bug Type: Issue - Confirmed a bug label Sep 5, 2023
@YangKeao YangKeao changed the title Not all columns are included in the RestoreData. Not all columns should have been included in the RestoreData. Sep 5, 2023
@YangKeao YangKeao changed the title Not all columns should have been included in the RestoreData. The need_restored_data for multi value index should return false Sep 5, 2023
@YangKeao
Copy link
Member Author

YangKeao commented Sep 6, 2023

This issue also affects 7.1

@tonyxuqqi
Copy link
Contributor

cc @Benjamin2037

@YangKeao
Copy link
Member Author

This issue should have been closed by pingcap/tidb#46993. TiDB will set the collation of multi-valued index as binary. Sorry, I forgot to close it after merging #46993.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants