mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
Updated MergeTreeConditionGinFilter due to SelectQueryInfo changes.
This commit is contained in:
parent
a33232cb0a
commit
da93210cc6
@ -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())
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user