milvus-io / milvus-tools

A data migration tool for Milvus.
Apache License 2.0
71 stars 21 forks source link

fix bug: when do the milvus to hdf5 meet the UnboundLocalError when segment_list and row_list empty #43

Open Freshield opened 2 years ago

Freshield commented 2 years ago

There will occur the error when the segment_list and row_list are empty, then the total_vectors and total_ids are assignment before clarify. This happened for me when I create all of the partition tags for data, and give None for partition tags when I do the milvus to hdf5, cause the default partition tag None has no data, then the error will occur.

here is the pull requests: https://github.com/milvus-io/milvus-tools/pull/42