From b84a4d0ae77e6e8c0c1c6e0d47b80754a5e005e3 Mon Sep 17 00:00:00 2001 From: JLY2015 <1623359870@qq.com> Date: Tue, 17 Dec 2024 21:46:23 +0000 Subject: [PATCH] [vector index] fix place holder --- src/share/schema/ob_schema_struct.h | 15 ++++++++++++++- .../vector_index/ob_plugin_vector_index_adaptor.h | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/share/schema/ob_schema_struct.h b/src/share/schema/ob_schema_struct.h index 1597fc9b2..eab8c0e21 100755 --- a/src/share/schema/ob_schema_struct.h +++ b/src/share/schema/ob_schema_struct.h @@ -373,11 +373,24 @@ enum ObIndexType INDEX_TYPE_VEC_DELTA_BUFFER_LOCAL = 27, INDEX_TYPE_VEC_INDEX_ID_LOCAL = 28, INDEX_TYPE_VEC_INDEX_SNAPSHOT_DATA_LOCAL = 29, + // vec ivf + INDEX_TYPE_VEC_IVFFLAT_CENTROID_LOCAL = 30, + INDEX_TYPE_VEC_IVFFLAT_CID_VECTOR_LOCAL = 31, + INDEX_TYPE_VEC_IVFFLAT_ROWKEY_CID_LOCAL = 32, + INDEX_TYPE_VEC_IVFSQ8_CENTROID_LOCAL = 33, + INDEX_TYPE_VEC_IVFSQ8_META_LOCAL = 34, + INDEX_TYPE_VEC_IVFSQ8_CID_VECTOR_LOCAL = 35, + INDEX_TYPE_VEC_IVFSQ8_ROWKEY_CID_LOCAL = 36, + INDEX_TYPE_VEC_IVFPQ_CENTROID_LOCAL = 37, + INDEX_TYPE_VEC_IVFPQ_PQ_CENTROID_LOCAL = 38, + INDEX_TYPE_VEC_IVFPQ_CODE_LOCAL = 39, + INDEX_TYPE_VEC_IVFPQ_ROWKEY_CID_LOCAL = 40, + /* * Attention!!! when add new index type, * need update func ObSimpleTableSchemaV2::should_not_validate_data_index_ckm() */ - INDEX_TYPE_MAX = 30, + INDEX_TYPE_MAX = 41, }; bool is_support_split_index_type(const ObIndexType index_type); diff --git a/src/share/vector_index/ob_plugin_vector_index_adaptor.h b/src/share/vector_index/ob_plugin_vector_index_adaptor.h index 9aeae7645..8432b7337 100644 --- a/src/share/vector_index/ob_plugin_vector_index_adaptor.h +++ b/src/share/vector_index/ob_plugin_vector_index_adaptor.h @@ -78,7 +78,7 @@ enum ObVectorIndexDistAlgorithm enum ObVectorIndexAlgorithmLib { VIAL_VSAG = 0, - IAL_OB, + VIAL_OB, VIAL_MAX };