Skip to content

Commit 24d30b4

Browse files
committed
full_text and inverted indexes are not supported anymore
1 parent f6400b5 commit 24d30b4

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Client/BuzzHouse/Generator/SQLTable.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ void StatementGenerator::addTableIndex(RandomGenerator & rg, SQLTable & t, const
13421342
const uint32_t iname = t.idx_counter++;
13431343
Expr * expr = idef->mutable_expr();
13441344
/// Inverted index is deprecated
1345-
const IndexType itpe = static_cast<IndexType>((rg.nextRandomUInt32() % static_cast<uint32_t>(IDX_full_text)) + 1);
1345+
const IndexType itpe = static_cast<IndexType>((rg.nextRandomUInt32() % static_cast<uint32_t>(IndexType_MAX)) + 1);
13461346
auto & to_add = staged ? t.staged_idxs : t.idxs;
13471347

13481348
idx.iname = iname;
@@ -1434,7 +1434,7 @@ void StatementGenerator::addTableIndex(RandomGenerator & rg, SQLTable & t, const
14341434
idef->add_params()->set_ival(next_dist1(rg.generator));
14351435
}
14361436
break;
1437-
case IndexType::IDX_full_text:
1437+
case IndexType::IDX_gin:
14381438
if (rg.nextBool())
14391439
{
14401440
std::uniform_int_distribution<uint32_t> next_dist(0, 10);
@@ -1463,9 +1463,6 @@ void StatementGenerator::addTableIndex(RandomGenerator & rg, SQLTable & t, const
14631463
case IndexType::IDX_minmax:
14641464
case IndexType::IDX_hypothesis:
14651465
break;
1466-
case IndexType::IDX_inverted:
1467-
chassert(0);
1468-
break;
14691466
}
14701467
if (rg.nextSmallNumber() < 7)
14711468
{

src/Client/BuzzHouse/Proto/SQLGrammar.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2974,8 +2974,7 @@ enum IndexType {
29742974
IDX_vector_similarity = 5;
29752975
IDX_ngrambf_v1 = 6;
29762976
IDX_tokenbf_v1 = 7;
2977-
IDX_full_text = 8;
2978-
IDX_inverted = 9;
2977+
IDX_gin = 8;
29792978
}
29802979

29812980
message IndexParam {

0 commit comments

Comments
 (0)