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

How to modify the maximum length of the milvus field 'max_length'? #34646

Closed
1 task done
yangy996 opened this issue Jul 12, 2024 · 11 comments
Closed
1 task done

How to modify the maximum length of the milvus field 'max_length'? #34646

yangy996 opened this issue Jul 12, 2024 · 11 comments
Assignees
Labels
help wanted Extra attention is needed stale indicates no udpates for 30 days

Comments

@yangy996
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Environment

No response

Current Behavior

749197952b1b5e5583040a93e8c5e85e

Expected Behavior

No response

Steps To Reproduce

No response

Milvus Log

No response

Anything else?

No response

@yangy996 yangy996 added kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jul 12, 2024
@yanliang567
Copy link
Contributor

I think you defined the max length in your collection schema. please try to describe the collection schema for the details. Milvus does not support dynamically update the max length for now, you need to create a new collection with a new max length value.
/assign @yangy996
/unassign

@sre-ci-robot sre-ci-robot assigned yangy996 and unassigned yanliang567 Jul 12, 2024
@yanliang567 yanliang567 added help wanted Extra attention is needed and removed kind/bug Issues or changes related a bug needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jul 12, 2024
@yangy996
Copy link
Author

I think you defined the max length in your collection schema. please try to describe the collection schema for the details. Milvus does not support dynamically update the max length for now, you need to create a new collection with a new max length value.我认为你在集合模式中定义了最大长度。请尝试描述收集方案的细节。Milvus目前不支持动态更新最大长度,您需要创建一个新的集合,并使用新的最大长度值。 /assign @yangy996 /unassign

My god.I have already stored a lot of data. How can I not clear the data and create a new collection?

@xiaofan-luan
Copy link
Collaborator

@yanliang567

we already have modify collection request

/assign @PowderLi could you help on modify the schema?

@xiaofan-luan
Copy link
Collaborator

@yangy996
mean time, you can use birdwatcher to hack the schema and rewrite into etcd.
simply read it out from etcd, hack the length, write it back and restart rootcoord would work
don't forget to backup before do so

@yangy996
Copy link
Author

The length of this text is only 2208 characters, but after storing it in Milvus, it shows 5066. Does Milvus store Chinese text in bytes instead of string length?

6f96f4f71633015dfc70616b0f450e1e

@xiaofan-luan
Copy link
Collaborator

the length of milvus is byte length.
A chinese character is only usually 2-3 bytes.

You can simply set varchar length to 65536

@mjzcng
Copy link

mjzcng commented Jul 31, 2024

@yangy996 mean time, you can use birdwatcher to hack the schema and rewrite into etcd. simply read it out from etcd, hack the length, write it back and restart rootcoord would work don't forget to backup before do so

Hello! I've met the same issue and I just noticed your reply. Now I've installed birdwatcher and connected to etcd, could you please explain how to use birdwatcher to hack the schema and rewrite? I have read help in birdwatcher but still don't understand how to do this. Thank you !

@yanliang567
Copy link
Contributor

/assign @congqixia
please help

@congqixia
Copy link
Contributor

I'm afraid schema modification is still in beta. Recently we add modifying clustering key feature only. We shall add modify max-length asap

@xiaofan-luan
Copy link
Collaborator

I think modify max length feature is a easy fix.
it should be very easy with load/release
@congqixia could you help on this?

Copy link

stale bot commented Sep 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rotten issues close after 30d of inactivity. Reopen the issue with /reopen.

@stale stale bot added the stale indicates no udpates for 30 days label Sep 7, 2024
@stale stale bot closed this as completed Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed stale indicates no udpates for 30 days
Projects
None yet
Development

No branches or pull requests

5 participants