MergeTreeIndexGin crash fix

This commit is contained in:
Maksim Kita 2023-01-22 15:31:04 +01:00
parent c7c5e29ff7
commit bb56af0e2b

View File

@ -655,7 +655,7 @@ bool MergeTreeConditionInverted::tryPrepareSetGinFilter(
return false;
ConstSetPtr prepared_set = rhs.tryGetPreparedSet();
if (!prepared_set && !prepared_set->hasExplicitSetElements())
if (!prepared_set || !prepared_set->hasExplicitSetElements())
return false;
for (const auto & data_type : prepared_set->getDataTypes())