mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 04:52:10 +00:00
Remove some comments
This commit is contained in:
parent
39da54cd50
commit
1c71a27527
@ -142,16 +142,13 @@ void optimizePrewhere(Stack & stack, QueryPlan::Nodes &)
|
|||||||
// if (!settings.allow_experimental_analyzer)
|
// if (!settings.allow_experimental_analyzer)
|
||||||
// return;
|
// return;
|
||||||
|
|
||||||
//const auto & table_expression_modifiers = read_from_merge_tree->getQueryInfo().table_expression_modifiers;
|
bool is_final = read_from_merge_tree->isQueryWithFinal();
|
||||||
bool is_final = read_from_merge_tree->isQueryWithFinal(); //table_expression_modifiers && table_expression_modifiers->hasFinal();
|
|
||||||
bool optimize_move_to_prewhere = settings.optimize_move_to_prewhere && (!is_final || settings.optimize_move_to_prewhere_if_final);
|
bool optimize_move_to_prewhere = settings.optimize_move_to_prewhere && (!is_final || settings.optimize_move_to_prewhere_if_final);
|
||||||
// std::cerr << "============ !!! << " << is_final << ' ' << settings.optimize_move_to_prewhere_if_final << std::endl;
|
|
||||||
if (!optimize_move_to_prewhere)
|
if (!optimize_move_to_prewhere)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const auto & storage_snapshot = read_from_merge_tree->getStorageSnapshot();
|
const auto & storage_snapshot = read_from_merge_tree->getStorageSnapshot();
|
||||||
|
|
||||||
//if (table_expression_modifiers && table_expression_modifiers->hasSampleSizeRatio())
|
|
||||||
if (read_from_merge_tree->isQueryWithSampling())
|
if (read_from_merge_tree->isQueryWithSampling())
|
||||||
{
|
{
|
||||||
const auto & sampling_key = storage_snapshot->getMetadataForQuery()->getSamplingKey();
|
const auto & sampling_key = storage_snapshot->getMetadataForQuery()->getSamplingKey();
|
||||||
|
Loading…
Reference in New Issue
Block a user