Skip to content

Commit 37500ee

Browse files
committed
Test fixups / style guide error
1 parent d2d247f commit 37500ee

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/Storages/MergeTree/MergeTreeIndexVectorSimilarity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace DB
4040
namespace Setting
4141
{
4242
extern const SettingsUInt64 hnsw_candidate_list_size_for_search;
43-
extern const SettingsUInt64 vector_search_postfilter_multiplier;
43+
extern const SettingsFloat vector_search_postfilter_multiplier;
4444
extern const SettingsUInt64 max_limit_for_vector_search_queries;
4545
}
4646

tests/queries/0_stateless/02354_vector_search_pre_and_post_filtering.reference

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ Test vector_search_filter_strategy = postfilter
1616
-- Additional WHERE clauses present, 2 full parts selected by partition key / 1 part partially selected by PK, index usage not expected
1717
7
1818
8
19+
0
1920
The first 3 neighbours returned by vector index dont pass the attr2 >= 1008 filter. Hence no rows returned by the query...
20-
10
21-
11
22-
12
2321
... but there are results for the same query with postfilter multiplier = 2.0
2422
10
2523
11

tests/queries/0_stateless/02354_vector_search_pre_and_post_filtering.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ FROM tab
130130
WHERE dt = '2025-01-03' AND id <= 9
131131
ORDER BY L2Distance(vector, [1.0, 1.0])
132132
LIMIT 2
133-
SETTINGS log_comment = '02354_vector_search_post_filter_strategy';
133+
SETTINGS log_comment = '02354_vector_search_post_filter_strategy_query1';
134134

135135
SYSTEM FLUSH LOGS query_log;
136136

137137
SELECT DISTINCT ProfileEvents['USearchSearchCount']
138138
FROM system.query_log
139-
WHERE log_comment = '02354_vector_search_post_filtering_query1'
139+
WHERE log_comment = '02354_vector_search_post_filter_strategy_query1'
140140
AND current_database = currentDatabase()
141141
AND type = 'QueryFinish';
142142

0 commit comments

Comments
 (0)