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]: [null & default] [milvus_client] there is no "default_value" value when describe collection for default_value set fields #2277

Open
1 task done
binbinlv opened this issue Sep 29, 2024 · 5 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@binbinlv
Copy link

binbinlv commented Sep 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

there is no "nullable" or "default_value" value when describe collection for nullable/default_value fields

{'field_id': 103, 'name': 'nullable_field', 'description': '', 'type': <DataType.INT64: 5>, 'params': {}}

Expected Behavior

there is "nullable" or "default_value" value when describe collection for nullable/default_value fields

Steps/Code To Reproduce behavior

schema = client.create_schema(enable_dynamic_field=False)
        schema.add_field("id_string", DataType.VARCHAR, max_length=64, is_primary=True, auto_id = False)
        schema.add_field("embeddings", DataType.FLOAT_VECTOR, dim=dim)
        schema.add_field("title", DataType.VARCHAR, max_length=64, is_partition_key=True)
        schema.add_field("nullable_field", DataType.INT64, nullable=True, default_value=10)
        schema.add_field("array_field", DataType.ARRAY, element_type=DataType.INT64, max_capacity=12, max_length=64, nullable=True)

Environment details

- Hardware/Softward conditions (OS, CPU, GPU, Memory):
- Method of installation (Docker, or from source):
- Milvus version (v0.3.1, or v0.4.0): master latest
- Milvus configuration (Settings you made in `server_config.yaml`):

Anything else?

No response

@binbinlv binbinlv added the kind/bug Something isn't working label Sep 29, 2024
@binbinlv
Copy link
Author

/assign @smellthemoon

@binbinlv
Copy link
Author

When change pymilvus to 2.5.0rc81, "nullable" exists in describe_collection, while "default_value" still not exists.

@binbinlv binbinlv changed the title [Bug]: [null & default] [milvus_client] there is no "nullable" or "default_value" value when describe collection for nullable/default_value fields [Bug]: [null & default] [milvus_client] there is no "default_value" value when describe collection for default_value set fields Sep 29, 2024
@XuanYang-cn XuanYang-cn added this to the PyMilvus 2.5.0 milestone Nov 19, 2024
@smellthemoon
Copy link
Contributor

seems related with #2272

@smellthemoon
Copy link
Contributor

could you help to check with the latest version? @binbinlv

@smellthemoon
Copy link
Contributor

/assign @binbinlv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants