mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 11:21:52 +08:00
#1571 Meta engine type become IDMAP after drop index for BINARY table
Signed-off-by: groot <yihua.mo@zilliz.com>
This commit is contained in:
parent
37fd79631d
commit
e18e0a11cc
@ -1326,8 +1326,12 @@ MySQLMetaImpl::DropTableIndex(const std::string& table_id) {
|
||||
}
|
||||
|
||||
// set table index type to raw
|
||||
dropTableIndexQuery << "UPDATE " << META_TABLES
|
||||
<< " SET engine_type = " << std::to_string(DEFAULT_ENGINE_TYPE)
|
||||
dropTableIndexQuery << "UPDATE " << META_TABLES << " SET engine_type = "
|
||||
<< " (CASE"
|
||||
<< " WHEN metric_type in (" << (int32_t)MetricType::HAMMING << " ,"
|
||||
<< (int32_t)MetricType::JACCARD << " ," << (int32_t)MetricType::TANIMOTO << ")"
|
||||
<< " THEN " << (int32_t)EngineType::FAISS_BIN_IDMAP << " ELSE "
|
||||
<< (int32_t)EngineType::FAISS_IDMAP << " END)"
|
||||
<< " , index_params = '{}'"
|
||||
<< " WHERE table_id = " << mysqlpp::quote << table_id << ";";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user