Update src/Storages/MergeTree/MergeTreeIndexInverted.cpp

Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
This commit is contained in:
Robert Schulze 2023-01-23 20:53:25 +01:00 committed by GitHub
parent d8af5bc2ef
commit 7adec3d8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,7 +770,7 @@ void invertedIndexValidator(const IndexDescription & index, bool /*attach*/)
/// Just validate
size_t ngrams = index.arguments.empty() ? 0 : index.arguments[0].get<size_t>();
Float64 density = index.arguments.size() < 2 ? 1.0l : index.arguments[1].get<Float64>();
Float64 density = index.arguments.size() < 2 ? 1.0 : index.arguments[1].get<Float64>();
GinFilterParameters params(ngrams, density);
}