-
Notifications
You must be signed in to change notification settings - Fork 638
Prefix vector impl table has its own settings #18132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1055,7 +1055,7 @@ void FillIndexDescriptionImpl(TYdbProto& out, const NKikimrSchemeOp::TTableDescr | |||||||||||||||||||||||||||
tableIndex.GetIndexImplTableDescriptions(0) | ||||||||||||||||||||||||||||
); | ||||||||||||||||||||||||||||
break; | ||||||||||||||||||||||||||||
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: | ||||||||||||||||||||||||||||
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: { | ||||||||||||||||||||||||||||
FillGlobalIndexSettings( | ||||||||||||||||||||||||||||
*index->mutable_global_vector_kmeans_tree_index()->mutable_level_table_settings(), | ||||||||||||||||||||||||||||
tableIndex.GetIndexImplTableDescriptions(0) | ||||||||||||||||||||||||||||
|
@@ -1064,10 +1064,18 @@ void FillIndexDescriptionImpl(TYdbProto& out, const NKikimrSchemeOp::TTableDescr | |||||||||||||||||||||||||||
*index->mutable_global_vector_kmeans_tree_index()->mutable_posting_table_settings(), | ||||||||||||||||||||||||||||
tableIndex.GetIndexImplTableDescriptions(1) | ||||||||||||||||||||||||||||
); | ||||||||||||||||||||||||||||
const bool prefixVectorIndex = tableIndex.GetKeyColumnNames().size() > 1; | ||||||||||||||||||||||||||||
if (prefixVectorIndex) { | ||||||||||||||||||||||||||||
FillGlobalIndexSettings( | ||||||||||||||||||||||||||||
*index->mutable_global_vector_kmeans_tree_index()->mutable_prefix_table_settings(), | ||||||||||||||||||||||||||||
tableIndex.GetIndexImplTableDescriptions(2) | ||||||||||||||||||||||||||||
); | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
Comment on lines
+1067
to
+1073
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
*index->mutable_global_vector_kmeans_tree_index()->mutable_vector_settings() = tableIndex.GetVectorIndexKmeansTreeDescription().GetSettings(); | ||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||
break; | ||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
default: | ||||||||||||||||||||||||||||
break; | ||||||||||||||||||||||||||||
}; | ||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -461,15 +461,21 @@ bool FillIndexTablePartitioning( | |||||||||||||||||||||||
} | ||||||||||||||||||||||||
break; | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
case Ydb::Table::TableIndex::kGlobalVectorKmeansTreeIndex: | ||||||||||||||||||||||||
case Ydb::Table::TableIndex::kGlobalVectorKmeansTreeIndex: { | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().level_table_settings(), indexImplTableDescriptions)) { | ||||||||||||||||||||||||
return false; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().posting_table_settings(), indexImplTableDescriptions)) { | ||||||||||||||||||||||||
return false; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
const bool prefixVectorIndex = index.index_columns().size() > 1; | ||||||||||||||||||||||||
if (prefixVectorIndex) { | ||||||||||||||||||||||||
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().prefix_table_settings(), indexImplTableDescriptions)) { | ||||||||||||||||||||||||
return false; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
Comment on lines
+471
to
+476
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||
break; | ||||||||||||||||||||||||
|
||||||||||||||||||||||||
} | ||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||
case Ydb::Table::TableIndex::TYPE_NOT_SET: | ||||||||||||||||||||||||
break; | ||||||||||||||||||||||||
} | ||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.