mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-01 03:52:15 +00:00
Remove redundant code
This commit is contained in:
parent
355d7bce05
commit
769589dbc9
@ -64,8 +64,6 @@
|
|||||||
#include <Analyzer/Resolve/TableExpressionsAliasVisitor.h>
|
#include <Analyzer/Resolve/TableExpressionsAliasVisitor.h>
|
||||||
#include <Analyzer/Resolve/ReplaceColumnsVisitor.h>
|
#include <Analyzer/Resolve/ReplaceColumnsVisitor.h>
|
||||||
|
|
||||||
#include <Analyzer/createUniqueTableAliases.h>
|
|
||||||
|
|
||||||
#include <Planner/PlannerActionsVisitor.h>
|
#include <Planner/PlannerActionsVisitor.h>
|
||||||
|
|
||||||
#include <Core/Settings.h>
|
#include <Core/Settings.h>
|
||||||
@ -517,9 +515,7 @@ void QueryAnalyzer::evaluateScalarSubqueryIfNeeded(QueryTreeNodePtr & node, Iden
|
|||||||
|
|
||||||
auto options = SelectQueryOptions(QueryProcessingStage::Complete, scope.subquery_depth, true /*is_subquery*/);
|
auto options = SelectQueryOptions(QueryProcessingStage::Complete, scope.subquery_depth, true /*is_subquery*/);
|
||||||
options.only_analyze = only_analyze;
|
options.only_analyze = only_analyze;
|
||||||
auto subquery = node->clone();
|
auto interpreter = std::make_unique<InterpreterSelectQueryAnalyzer>(node->toAST(), subquery_context, subquery_context->getViewSource(), options);
|
||||||
createUniqueTableAliases(subquery, {}, subquery_context);
|
|
||||||
auto interpreter = std::make_unique<InterpreterSelectQueryAnalyzer>(subquery->toAST(), subquery_context, subquery_context->getViewSource(), options);
|
|
||||||
|
|
||||||
if (only_analyze)
|
if (only_analyze)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user