[Bug]: SPARSE_FLOAT_VECTOR FieldSchema cause error.(data type not supported) #39392
Open
1 task done
Labels
kind/bug
Issues or changes related a bug
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Is there an existing issue for this?
Environment
Current Behavior
Everytime I define Collection. FieldSchema(name="sparse_vector", dtype=DataType.SPARSE_FLOAT_VECTOR) causes RPC error.
Expected Behavior
Collection should be made by do this.
Steps To Reproduce
Milvus Log
MilvusException Traceback (most recent call last)
[... skipping hidden 1 frame]
Cell In[8], line 11
10 schema = CollectionSchema(fields, "")
---> 11 col = Collection("sparse_dense_demo", schema)
File c:\Users\SKsiltron\Desktop\works\LLM\lib\site-packages\pymilvus\orm\collection.py:149, in Collection.init(self, name, schema, using, **kwargs)
145 consistency_level = get_consistency_level(
146 kwargs.get("consistency_level", DEFAULT_CONSISTENCY_LEVEL)
147 )
--> 149 conn.create_collection(self._name, schema, **kwargs)
150 self._schema = schema
File c:\Users\SKsiltron\Desktop\works\LLM\lib\site-packages\pymilvus\decorators.py:147, in error_handler..wrapper..handler(*args, **kwargs)
146 LOGGER.error(f"RPC error: [{inner_name}], {e}, Time:{record_dict}")
--> 147 raise e from e
148 except grpc.FutureTimeoutError as e:
File c:\Users\SKsiltron\Desktop\works\LLM\lib\site-packages\pymilvus\decorators.py:143, in error_handler..wrapper..handler(*args, **kwargs)
142 record_dict["RPC start"] = str(datetime.datetime.now())
--> 143 return func(*args, **kwargs)
144 except MilvusException as e:
...
58 def check_status(status: Status):
59 if status.code != 0 or status.error_code != 0:
---> 60 raise MilvusException(status.code, status.reason, status.error_code)
MilvusException: <MilvusException: (code=0, message=104 data type not supported)>
Anything else?
In my case, I don't think this error is from pymilvus version. I tried changing version several times.
PLZ help me.
The text was updated successfully, but these errors were encountered: