Skip to content

Commit 07617fb

Browse files
committed
implementation without public API changes for alter index
1 parent 9df471f commit 07617fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ydb/core/kqp/provider/yql_kikimr_exec.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,16 +1515,16 @@ class TKiSinkCallableExecutionTransformer : public TAsyncCallbackTransformer<TKi
15151515
}
15161516
} else if (name == "alterIndex") {
15171517
auto listNode = action.Value().Cast<TCoNameValueTupleList>();
1518-
auto* alterIndex = alterTableRequest.add_alter_indexes();
15191518
for (const auto& indexSetting : listNode) {
15201519
auto name = indexSetting.Name().Value();
15211520
if (name == "indexName") {
1522-
alterIndex->set_name(indexSetting.Value().Cast<TCoAtom>().StringValue());
1521+
auto index = indexSetting.Value().Cast<TCoAtom>().StringValue();
1522+
alterTableRequest.set_path(TStringBuilder() << alterTableRequest.path() << '/' << index << '/' << "indexImplTable");
15231523
} else if (name == "tableSettings") {
15241524
auto tableSettings = indexSetting.Value().Cast<TCoNameValueTupleList>();
15251525
for (const auto& tableSetting : tableSettings) {
1526-
if (!ParsePartitioningSettings([&alterIndex]() {
1527-
return alterIndex->mutable_partitioning_settings();
1526+
if (!ParsePartitioningSettings([&alterTableRequest]() {
1527+
return alterTableRequest.mutable_alter_partitioning_settings();
15281528
}, tableSetting, ctx, true)
15291529
) {
15301530
return SyncError();

0 commit comments

Comments
 (0)