aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniil Cherednik <dcherednik@yandex-team.ru>2022-03-19 02:05:42 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-03-19 02:05:42 +0300
commitf65d25f7eead90c91e7f37ef07fbbf2a274e3d2b (patch)
treee6f95c7a3b0fff6ae505ae0be04cfeef664cb33c
parentdc49aeeb5ef43e6b5044d4243666e18c319f89e2 (diff)
downloadydb-f65d25f7eead90c91e7f37ef07fbbf2a274e3d2b.tar.gz
Fix missed call to find index build column for idx_test. KIKIMR-14517
ref:e7189fb13a0a3f95213389143d7ab5c618e59c94
-rw-r--r--ydb/public/lib/idx_test/idx_test_loader.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/ydb/public/lib/idx_test/idx_test_loader.cpp b/ydb/public/lib/idx_test/idx_test_loader.cpp
index 392604288e..5e6b856b8f 100644
--- a/ydb/public/lib/idx_test/idx_test_loader.cpp
+++ b/ydb/public/lib/idx_test/idx_test_loader.cpp
@@ -144,6 +144,9 @@ public:
// Nothing to add, skip
return NThreading::MakeFuture<TStatus>(TStatus(EStatus::SUCCESS, NYql::TIssues()));
}
+
+ ChooseColumnsForIndex();
+
return Client_.RetryOperation([this](TSession session) {
auto settings = TAlterTableSettings()
.AppendAddIndexes(Description_.GetRef())
@@ -1231,10 +1234,6 @@ private:
return result;
}
- static bool CompareWorkTaskEntry(const TWorkTaskEntry& a, const TWorkTaskEntry& b) {
- return a.second < b.second;
- }
-
static bool CompareValueWorkTaskEntry(ui32 a, const TWorkTaskEntry& b) {
return a < b.second;
}
@@ -1245,8 +1244,6 @@ private:
s += t.second;
t.second = s;
}
-
- std::sort(tasks.begin(), tasks.end(), &CompareWorkTaskEntry);
}
static IWorkTask* GetRandomTask(TVector<TWorkTaskEntry>& tasks) {