提交 f159be38 编写于 作者: A Alexey Milovidov

Fixed error #1947

上级 fe2da8a2
......@@ -72,7 +72,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
QueryProcessingStage::Enum to_stage_,
size_t subquery_depth_,
const BlockInputStreamPtr & input)
: query_ptr(query_ptr_)
: query_ptr(query_ptr_->clone())
, query(typeid_cast<ASTSelectQuery &>(*query_ptr))
, context(context_)
, to_stage(to_stage_)
......@@ -85,7 +85,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
InterpreterSelectQuery::InterpreterSelectQuery(OnlyAnalyzeTag, const ASTPtr & query_ptr_, const Context & context_)
: query_ptr(query_ptr_)
: query_ptr(query_ptr_->clone())
, query(typeid_cast<ASTSelectQuery &>(*query_ptr))
, context(context_)
, to_stage(QueryProcessingStage::Complete)
......
......@@ -26,7 +26,6 @@ public:
/**
* query_ptr
* - A query AST to interpret.
* NOTE: The interpreter can modify the query during the execution. If this is undesirable, clone the query.
*
* to_stage
* - the stage to which the query is to be executed. By default - till to the end.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册