return array data type in infer_dtype_bydata#2144
return array data type in infer_dtype_bydata#2144rgupta2508 wants to merge 11 commits intomilvus-io:masterfrom
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. DetailsNeeds 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. |
|
@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 <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: Rohit Gupta <rohit.gupta2@walmart.com> Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
Signed-off-by: r0g0bum <rohit.gupta2@walmart.com>
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