Update MergeTreeIndexSet.cpp

This commit is contained in:
Alexey Milovidov 2024-05-19 15:00:14 +03:00 committed by GitHub
parent 31f0b2f741
commit e18fa68f3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -291,7 +291,7 @@ bool MergeTreeIndexConditionSet::mayBeTrueOnGranule(MergeTreeIndexGranulePtr idx
const auto & column = result.getByPosition(result.columns() - 1).column;
for (size_t i = 0; i < size; ++i)
if (column->getUInt(i) & 1)
if (!column->isNullAt(i) && (column->get64(i) & 1))
return true;
return false;