# vector_indices
包含有关 MergeTree 表的向量索引的信息。
每一行描述一个向量索引。
列:
database(字符串)- 数据库的名称。table(字符串)- 表的名称。name(字符串)- 向量索引的名称。type(字符串)- 向量索引的类型(例如,MSTG,IVFFLAT,HNSW)。expr(字符串)- 用于创建向量索引的表达式(例如,ALTER TABLE {database}.{table} ADD VECTOR INDEX {expr})。total_part(Int64)- 表中的总数据部分。每个数据部分对应一个向量索引段。parts_with_vector_index(Int64)- 具有构建的向量索引段的数据部分。small_parts(Int64)- 具有行数小于min_rows_to_build_vector_index(MergeTree 引擎参数,默认值:0)的小数据部分。我们不为小数据部分构建向量索引段。status(字符串)- 向量索引的状态(Built,InProgress或Error)。host_name(字符串)- 当前数据库的主机名。latest_failed_part(字符串)- 最新失败的数据部分名称(如果状态为Error)。latest_fail_reason(字符串)- 最新构建失败的异常信息(如果状态为Error)。
示例:
SELECT * FROM system.vector_indices
第 1 行:
──────
database: default
table: Benchmark
name: 40m_mstg
type: MSTG
expr: `40m_mstg` vector TYPE MSTG('metric_type=L2')
total_parts: 1
parts_with_vector_index: 1
small_parts: 0
status: Built
host_name: chi%2Dtaptap%2D40m%2Dtest%2Dclickhouse%2D0%2D0%2D0%2Echi%2Dtaptap%2D40m%2Dtest%2Dclickhouse%2D0%2D0%2Etaptap%2Esvc%2Ecluster%2Elocal:9000
latest_failed_part:
latest_fail_reason:
京公网安备 11010802042981号