Skip to content

Commit 8c7a256

Browse files
committed
Fix full text index fix
1 parent e69c1c2 commit 8c7a256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Storages/MergeTree/MergeTreeIndexFullText.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,13 @@ bool MergeTreeConditionFullText::extractAtomFromTree(const RPNBuilderTreeNode &
346346

347347
if (const_value.getType() == Field::Types::Int64)
348348
{
349-
out.function = const_value.get<UInt64>() ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
349+
out.function = const_value.get<Int64>() ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
350350
return true;
351351
}
352352

353353
if (const_value.getType() == Field::Types::Float64)
354354
{
355-
out.function = const_value.get<UInt64>() ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
355+
out.function = const_value.get<Float64>() != 0.0 ? RPNElement::ALWAYS_TRUE : RPNElement::ALWAYS_FALSE;
356356
return true;
357357
}
358358
}

0 commit comments

Comments
 (0)