Skip to content

Commit 01c9a5f

Browse files
apply() method now works
Signed-off-by: Francisco Javier Arceo <[email protected]>
1 parent 011ab46 commit 01c9a5f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

  • sdk/python/feast/infra/online_stores/milvus_online_store

sdk/python/feast/infra/online_stores/milvus_online_store/milvus.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,11 @@ def _get_collection(self, config: RepoConfig, table: FeatureView) -> Collection:
7777
self._connect(config)
7878

7979
fields = [
80-
FieldSchema(
81-
name="pk", dtype=DataType.INT64, is_primary=True, auto_id=True
82-
),
83-
FieldSchema(name="entity_key", dtype=DataType.VARCHAR, max_length=512),
80+
FieldSchema(name="entity_key", dtype=DataType.VARCHAR, max_length=512, is_primary=True),
8481
FieldSchema(
8582
name="feature_name", dtype=DataType.VARCHAR, max_length=256
8683
),
87-
FieldSchema(name="value", dtype=DataType.BINARY_VECTOR, dim=8 * 1024),
84+
# FieldSchema(name="value", dtype=DataType.BINARY_VECTOR, dim=8 * 1024),
8885
FieldSchema(
8986
name="vector_value",
9087
dtype=DataType.FLOAT_VECTOR,
@@ -256,7 +253,7 @@ def teardown(
256253
for table in tables:
257254
collection_name = _table_id(config.project, table)
258255
collection = Collection(name=collection_name)
259-
if collection.exists():
256+
if collection:
260257
collection.drop()
261258
self._collections.pop(collection_name, None)
262259

0 commit comments

Comments
 (0)