fix build failure

This commit is contained in:
zhang2014 2019-08-29 12:54:09 +08:00
parent 74c9eea657
commit 275c0d88b3

View File

@ -276,7 +276,11 @@ ASTPtr MutationsInterpreter::prepare(bool dry_run)
stages_copy.back().output_columns = stage.output_columns;
stages_copy.back().filters = stage.filters;
}
auto first_stage_header = prepareInterpreterSelectQuery(stages_copy, /* dry_run = */ true)->getSampleBlock();
const ASTPtr select_query = prepareInterpreterSelectQuery(stages_copy, /* dry_run = */ true);
InterpreterSelectQuery interpreter{select_query, context, storage, SelectQueryOptions().analyze(/* dry_run = */ false).ignoreLimits()};
auto first_stage_header = interpreter.getSampleBlock();
auto in = std::make_shared<NullBlockInputStream>(first_stage_header);
updated_header = std::make_unique<Block>(addStreamsForLaterStages(stages_copy, in)->getHeader());
}
@ -287,8 +291,6 @@ ASTPtr MutationsInterpreter::prepare(bool dry_run)
column, std::make_shared<ASTIdentifier>(column));
}
// interpreter_select = prepareInterpreterSelectQuery(stages, dry_run);
is_prepared = true;
return prepareInterpreterSelectQuery(stages, dry_run);