Skip to content

Commit

Permalink
Exclude string type from max_length checking
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Apr 24, 2024
1 parent 3b6408e commit 9c5435c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion morpheus/service/vdb/milvus_vector_db_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def __init__(self, name: str, client: "MilvusClient", truncate_long_strings: boo
if field.dtype == pymilvus.DataType.FLOAT_VECTOR:
self._vector_field = field.name
else:
if field.dtype in (pymilvus.DataType.VARCHAR, pymilvus.DataType.STRING):
# Intentionally excluding pymilvus.DataType.STRING, in our current version it isn't supported, and in
# some database systems string types don't have a max length.
if field.dtype == pymilvus.DataType.VARCHAR:
max_length = field.params.get('max_length')
if max_length is not None:
self._fields_max_length[field.name] = max_length
Expand Down

0 comments on commit 9c5435c

Please sign in to comment.