-
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
Conversation
🟢 |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
case Ydb::Table::TableIndex::kGlobalVectorKmeansTreeIndex: { | |
case Ydb::Table::TableIndex::kGlobalVectorKmeansTreeIndex: |
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.
} |
const bool prefixVectorIndex = index.index_columns().size() > 1; | ||
if (prefixVectorIndex) { | ||
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().prefix_table_settings(), indexImplTableDescriptions)) { | ||
return false; | ||
} | ||
} |
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.
const bool prefixVectorIndex = index.index_columns().size() > 1; | |
if (prefixVectorIndex) { | |
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().prefix_table_settings(), indexImplTableDescriptions)) { | |
return false; | |
} | |
} | |
if (index.index_columns().size() > 1) { // prefix vector index | |
if (!fillIndexPartitioning(index.global_vector_kmeans_tree_index().prefix_table_settings(), indexImplTableDescriptions)) { | |
return false; | |
} | |
} |
@@ -1055,7 +1055,7 @@ void FillIndexDescriptionImpl(TYdbProto& out, const NKikimrSchemeOp::TTableDescr | |||
tableIndex.GetIndexImplTableDescriptions(0) | |||
); | |||
break; | |||
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: | |||
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: { |
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.
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: { | |
case NKikimrSchemeOp::EIndexType::EIndexTypeGlobalVectorKmeansTree: |
|
||
*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 comment
The reason will be displayed to describe this comment to others. Learn more.
} |
const bool prefixVectorIndex = tableIndex.GetKeyColumnNames().size() > 1; | ||
if (prefixVectorIndex) { | ||
FillGlobalIndexSettings( | ||
*index->mutable_global_vector_kmeans_tree_index()->mutable_prefix_table_settings(), | ||
tableIndex.GetIndexImplTableDescriptions(2) | ||
); | ||
} |
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.
const bool prefixVectorIndex = tableIndex.GetKeyColumnNames().size() > 1; | |
if (prefixVectorIndex) { | |
FillGlobalIndexSettings( | |
*index->mutable_global_vector_kmeans_tree_index()->mutable_prefix_table_settings(), | |
tableIndex.GetIndexImplTableDescriptions(2) | |
); | |
} | |
if (tableIndex.GetKeyColumnNames().size() > 1) { // prefixVectorIndex | |
FillGlobalIndexSettings( | |
*index->mutable_global_vector_kmeans_tree_index()->mutable_prefix_table_settings(), | |
tableIndex.GetIndexImplTableDescriptions(2) | |
); | |
} |
Changelog entry
Fixed forgotten field
GlobalIndexSettings prefix_table_settings = 4;
inydb_table.proto
Changelog category
Description for reviewers
...