Skip to content

Commit

Permalink
Fixed build of ydb/core/kqp/ut/indexes test (#13688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gazizonoki authored Jan 22, 2025
1 parent 1b7e461 commit 6cb3125
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ydb/core/kqp/ut/indexes/kqp_indexes_ut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineDistance);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2374,7 +2374,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineSimilarity);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2416,7 +2416,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineDistance);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2458,7 +2458,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineSimilarity);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2500,7 +2500,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineDistance);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2542,7 +2542,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineSimilarity);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2584,7 +2584,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineDistance);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down Expand Up @@ -2626,7 +2626,7 @@ Y_UNIT_TEST_SUITE(KqpIndexes) {
const auto& indexes = result.GetTableDescription().GetIndexDescriptions();
UNIT_ASSERT_EQUAL(indexes.size(), 1);
UNIT_ASSERT_EQUAL(indexes[0].GetIndexName(), "index");
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), TVector<TString>{"emb"});
UNIT_ASSERT_EQUAL(indexes[0].GetIndexColumns(), std::vector<std::string>{"emb"});
const auto& settings = std::get<TKMeansTreeSettings>(indexes[0].GetVectorIndexSettings());
UNIT_ASSERT_EQUAL(settings.Settings.Metric, NYdb::NTable::TVectorIndexSettings::EMetric::CosineSimilarity);
UNIT_ASSERT_EQUAL(settings.Settings.VectorType, NYdb::NTable::TVectorIndexSettings::EVectorType::Uint8);
Expand Down

0 comments on commit 6cb3125

Please sign in to comment.