I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.Now, I can get all table indexes by parsing create_table_query filed,is there any table that directly stores indexs info,like MySQL information_schema.STATISTICS
select t.*,splitByString(' TYPE ',trim(index_column)) as index_info,
mid(index_info[1],POSITION (index_info[1],' ') + 1 ,100) index_columns,
index_info[2] as index_type
from (
select database ,name as table_name,engine,create_table_query ,total_rows, partition_key ,sorting_key ,primary_key ,sampling_key ,
extractAll(create_table_query,'INDEX(.*?)GRANULARITY') index_arr
from `system`.tables t where database in ('ods','uds','efc','dss','old')
and engine not in ('View')
) t
left ARRAY JOIN index_arr as index_column