We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e69c1c2 commit 8c7a256Copy full SHA for 8c7a256
src/Storages/MergeTree/MergeTreeIndexFullText.cpp
@@ -346,13 +346,13 @@ bool MergeTreeConditionFullText::extractAtomFromTree(const RPNBuilderTreeNode &
346
347
if (const_value.getType() == Field::Types::Int64)
348
{
349
- out.function = const_value.get<UInt64>() ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
+ out.function = const_value.get<Int64>() ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
350
return true;
351
}
352
353
if (const_value.getType() == Field::Types::Float64)
354
355
+ out.function = const_value.get<Float64>() != 0.0 ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
356
357
358
0 commit comments