File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -422,8 +422,9 @@ MergeTreeIndexConditionVectorSimilarity::MergeTreeIndexConditionVectorSimilarity
422422{
423423 if (expansion_search == 0 )
424424 throw Exception (ErrorCodes::INVALID_SETTING_VALUE, " Setting 'hnsw_candidate_list_size_for_search' must not be 0" );
425- if (!std::isfinite (postfilter_multiplier) || !std::isfinite (postfilter_multiplier * parameters->limit ) || postfilter_multiplier < 0.0 )
426- throw Exception (ErrorCodes::INVALID_SETTING_VALUE, " Setting 'vector_search_postfilter_multiplier' must be bigger than 0.0" );
425+ if (!std::isfinite (postfilter_multiplier) || postfilter_multiplier < 0.0 ||
426+ (parameters && !std::isfinite (postfilter_multiplier * parameters->limit )))
427+ throw Exception (ErrorCodes::INVALID_SETTING_VALUE, " Setting 'vector_search_postfilter_multiplier' must be bigger than 0.0" );
427428}
428429
429430bool MergeTreeIndexConditionVectorSimilarity::mayBeTrueOnGranule (MergeTreeIndexGranulePtr) const
You can’t perform that action at this time.
0 commit comments