@@ -437,7 +437,7 @@ TEST_F(LuminaGlobalIndexTest, TestHighCardinalityAndMultiThreadSearch) {
437437 CreateGlobalIndexReader (test_root, data_type_, options_, meta));
438438
439439 auto search_with_filter = [&]() {
440- int32_t limit = paimon::test::RandomNumber (0 , 99 );
440+ int32_t limit = paimon::test::RandomNumber (1 , 100 );
441441 auto filter = [](int64_t id) -> bool { return id % 2 ; };
442442 ASSERT_OK_AND_ASSIGN (
443443 auto vector_search_result,
@@ -451,16 +451,16 @@ TEST_F(LuminaGlobalIndexTest, TestHighCardinalityAndMultiThreadSearch) {
451451 };
452452
453453 auto search = [&]() {
454- int32_t k = paimon::test::RandomNumber (0 , 99 );
454+ int32_t limit = paimon::test::RandomNumber (1 , 100 );
455455 ASSERT_OK_AND_ASSIGN (
456456 auto vector_search_result,
457457 reader->VisitVectorSearch (std::make_shared<VectorSearch>(
458- " f0" , k , query_, /* filter=*/ nullptr ,
458+ " f0" , limit , query_, /* filter=*/ nullptr ,
459459 /* predicate=*/ nullptr , /* distance_type=*/ std::nullopt , /* options=*/ options_)));
460460 auto typed_result =
461461 std::dynamic_pointer_cast<BitmapVectorSearchGlobalIndexResult>(vector_search_result);
462462 ASSERT_TRUE (typed_result);
463- ASSERT_EQ (typed_result->bitmap_ .Cardinality (), k );
463+ ASSERT_EQ (typed_result->bitmap_ .Cardinality (), limit );
464464 };
465465
466466 std::vector<std::thread> threads;
0 commit comments