-
Notifications
You must be signed in to change notification settings - Fork 331
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
return array data type in infer_dtype_bydata #2144
base: master
Are you sure you want to change the base?
Conversation
Welcome @rgupta2508! It looks like this is your first PR to milvus-io/pymilvus 🎉 |
51e18a7
to
1dc200d
Compare
@wangting0128 @longjiquan Please review , if this can be merged to return Milvus.ARRAY data type for infer_dtype_bydata function. Or any thing we can do. |
/assign @czs007 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: rgupta2508 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
f61280d
to
080946d
Compare
This PR will resolve this issue #2165 |
Please help to review this. @xiaocai2333 |
It is recommended to change the default behavior to infer the vector, as pymilvus itself relies on the interface. |
7cd45fb
to
727d14e
Compare
@rgupta2508 thanks for the contributions. I agree that we should infer data as array when the data is list-like and the infered type is bool or varchar, but it's also not enough to infer the schema since element type is required for array. |
12a14d8
to
cb9b12d
Compare
@rgupta2508 Take array type as considerations, I prefer that this function should infer a field schema instead of a data type (since data type don't contain other informations). |
If so, I think we should do much more refactors. |
Yes correct , we cant return field schema with this, this we can use for data type only. directly we cant use it for schema. even max_capacity for array and max_length for varchar array is also mandatory to create schema, not sure if we can use this method for this, this will just return DataType only. used should handle this if they will get datatyepe Array. |
Yes correct, but even max_capacity for array and max_length for varchar array is also mandatory to create schema, not sure if we can add some default values on this. |
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: Rohit Gupta <[email protected]> Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: r0g0bum <[email protected]>
Signed-off-by: r0g0bum <[email protected]>
7dd49ea
to
cadea3f
Compare
Hi @longjiquan Any suggestion on this PR . if this can be merged with this idea. |
Now milvus supporting ARRAY data types so we can return DataType.ARRAY in case of if it is not VECTOR.
This will be helpful to create ARRAY data type field seamlessly in milvus