File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -453,20 +453,17 @@ def query(
453
453
ids = [ids ]
454
454
455
455
conn = self ._get_connection ()
456
- try :
457
- schema_dict = conn .describe_collection (collection_name , timeout = timeout , ** kwargs )
458
- except Exception as ex :
459
- logger .error ("Failed to describe collection: %s" , collection_name )
460
- raise ex from ex
461
456
462
457
if ids :
458
+ try :
459
+ schema_dict = conn .describe_collection (collection_name , timeout = timeout , ** kwargs )
460
+ except Exception as ex :
461
+ logger .error ("Failed to describe collection: %s" , collection_name )
462
+ raise ex from ex
463
463
filter = self ._pack_pks_expr (schema_dict , ids )
464
464
465
465
if not output_fields :
466
466
output_fields = ["*" ]
467
- vec_field_name = self ._get_vector_field_name (schema_dict )
468
- if vec_field_name :
469
- output_fields .append (vec_field_name )
470
467
471
468
try :
472
469
res = conn .query (
You can’t perform that action at this time.
0 commit comments