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

[Bug]: describe_database returns everything in string, even the properties were set in diferent data types #38469

Open
1 task done
yanliang567 opened this issue Dec 16, 2024 · 5 comments
Assignees
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@yanliang567
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: 2.4-20241213-85ade98e-amd64
- Deployment mode(standalone or cluster): standalone
- MQ type(rocksmq, pulsar or kafka):    
- SDK version(e.g. pymilvus v2.0.0rc2): 2.4.11rc8

Current Behavior

the describe_database() returns properties all in string
image
while i add them in different data types
image

Expected Behavior

the data types should be persistent

Steps To Reproduce

runt the code below

Milvus Log

No response

Anything else?

client = self._connect(enable_milvus_client_api=True)
        collection_name = cf.gen_unique_str(prefix)
        client_w.create_collection(client, collection_name, default_dim, consistency_level="Strong")
        # 1. alter default database properties before load
        properties = {"key1": 1, "key2": "value2", "key3": [1, 2, 3]}
        client_w.alter_database_properties(client, db_name="default", properties=properties)
        res1 = client_w.describe_database(client, db_name="default")[0]
        assert res1.properties.items() >= properties.items()
@yanliang567 yanliang567 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 Dec 16, 2024
@yanliang567 yanliang567 self-assigned this Dec 16, 2024
@yanliang567
Copy link
Contributor Author

/assign @czs007
/unassign

@sre-ci-robot sre-ci-robot assigned czs007 and unassigned yanliang567 Dec 16, 2024
@yanliang567 yanliang567 added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Dec 16, 2024
@shanghaikid
Copy link
Contributor

message KeyValuePair {
    string key = 1;
    string value = 2;
}

:<

@yanliang567
Copy link
Contributor Author

the return type of describe_database() is not expected, which was tracking in #38471

@yanliang567
Copy link
Contributor Author

The same issue to client.describe_index()
image

@JsDove
Copy link
Contributor

JsDove commented Dec 17, 2024

/assign @JsDove
/unassign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Issues or changes related a bug triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

4 participants