mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix actions for distributed.
This commit is contained in:
parent
e5c1df010f
commit
76d1412953
@ -458,10 +458,13 @@ Block InterpreterSelectQuery::getSampleBlockImpl()
|
||||
optimize_prewhere(*merge_tree_data);
|
||||
}
|
||||
|
||||
if (storage && !options.only_analyze)
|
||||
from_stage = storage->getQueryProcessingStage(context);
|
||||
|
||||
analysis_result = analyzeExpressions(
|
||||
getSelectQuery(),
|
||||
*query_analyzer,
|
||||
QueryProcessingStage::Enum::FetchColumns,
|
||||
from_stage,
|
||||
options.to_stage,
|
||||
context,
|
||||
storage,
|
||||
@ -933,11 +936,6 @@ void InterpreterSelectQuery::executeImpl(TPipeline & pipeline, const BlockInputS
|
||||
const Settings & settings = context.getSettingsRef();
|
||||
auto & expressions = analysis_result;
|
||||
|
||||
QueryProcessingStage::Enum from_stage = QueryProcessingStage::FetchColumns;
|
||||
|
||||
if (storage && !options.only_analyze)
|
||||
from_stage = storage->getQueryProcessingStage(context);
|
||||
|
||||
SortingInfoPtr sorting_info;
|
||||
if (settings.optimize_read_in_order && storage && query.orderBy() && !query_analyzer->hasAggregation() && !query.final() && !query.join())
|
||||
{
|
||||
|
@ -264,6 +264,8 @@ private:
|
||||
AnalysisResult analysis_result;
|
||||
FilterInfoPtr filter_info;
|
||||
|
||||
QueryProcessingStage::Enum from_stage = QueryProcessingStage::FetchColumns;
|
||||
|
||||
/// How many streams we ask for storage to produce, and in how many threads we will do further processing.
|
||||
size_t max_streams = 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user