Updated MergeTreeConditionGinFilter due to SelectQueryInfo changes.

This commit is contained in:
Larry Luo 2022-08-25 05:54:06 -07:00
parent a33232cb0a
commit da93210cc6
2 changed files with 4 additions and 8 deletions

View File

@ -197,7 +197,7 @@ MergeTreeConditionGinFilter::MergeTreeConditionGinFilter(
, index_data_types(index_sample_block.getNamesAndTypesList().getTypes())
, params(params_)
, token_extractor(token_extactor_)
, prepared_sets(query_info.sets)
, prepared_sets(query_info.prepared_sets)
{
rpn = std::move(
RPNBuilder<RPNElement>(
@ -660,12 +660,8 @@ bool MergeTreeConditionGinFilter::tryPrepareSetGinFilter(
else
set_key = PreparedSetKey::forLiteral(*right_arg, data_types);
auto set_it = prepared_sets.find(set_key);
if (set_it == prepared_sets.end())
return false;
const SetPtr & prepared_set = set_it->second;
if (!prepared_set->hasExplicitSetElements())
const SetPtr & prepared_set = prepared_sets->get(set_key);
if (!prepared_set || !prepared_set->hasExplicitSetElements())
return false;
for (const auto & data_type : prepared_set->getDataTypes())

View File

@ -153,7 +153,7 @@ private:
TokenExtractorPtr token_extractor;
RPN rpn;
/// Sets from syntax analyzer.
PreparedSets prepared_sets;
PreparedSetsPtr prepared_sets;
};
class MergeTreeIndexGinFilter final : public IMergeTreeIndex