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]: The pymilvus data type inference fails to identify the ARRAY data type for lists. #1785

Open
1 task done
abratnap opened this issue Nov 15, 2023 · 1 comment
Open
1 task done
Assignees
Labels
kind/bug Something isn't working

Comments

@abratnap
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The pymilvus data type inference fails to identify the ARRAY data type for lists.
This is the issue with infer_dtype_bydata function. I have observed it while using langchain vectorstore connector which uses this function to infer metadata types. The inference doesn't work for metadata with list of strings or booleans.

Expected Behavior

infer_dtype_bydata should return Datatype.ARRAY for list like objects.

Steps/Code To Reproduce behavior

Call `infer_dtype_bydata(["A", "B"])` returns DataType.UNKNOWN instead of DataType.ARRAY

Environment details

No response

Anything else?

No response

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

2 participants