diff --git a/dbms/src/Interpreters/ExpressionAnalyzer.cpp b/dbms/src/Interpreters/ExpressionAnalyzer.cpp index 4f16fda9666..766b3c92cd3 100644 --- a/dbms/src/Interpreters/ExpressionAnalyzer.cpp +++ b/dbms/src/Interpreters/ExpressionAnalyzer.cpp @@ -274,7 +274,7 @@ ExpressionAnalyzer::ExpressionAnalyzer( getArrayJoinedColumns(); /// Push the predicate expression down to the sub-queries. - rewrite_sub_queries = PredicateExpressionsOptimizer(select_query, settings, context).optimize(); + rewrite_sub_queries = PredicateExpressionsOptimizer(select_query, settings).optimize(); /// Delete the unnecessary from `source_columns` list. Create `unknown_required_source_columns`. Form `columns_added_by_join`. collectUsedColumns(); diff --git a/dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp b/dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp index 8d7dc7eeedb..7c7c57f6942 100644 --- a/dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp +++ b/dbms/src/Interpreters/PredicateExpressionsOptimizer.cpp @@ -14,8 +14,8 @@ namespace DB static constexpr auto and_function_name = "and"; PredicateExpressionsOptimizer::PredicateExpressionsOptimizer( - ASTSelectQuery * ast_select_, const Settings & settings_, const Context & context_) - : ast_select(ast_select_), settings(settings_), context(context_) + ASTSelectQuery * ast_select_, const Settings & settings_) + : ast_select(ast_select_), settings(settings_) { } diff --git a/dbms/src/Interpreters/PredicateExpressionsOptimizer.h b/dbms/src/Interpreters/PredicateExpressionsOptimizer.h index b194151cea3..b02e750f0c4 100644 --- a/dbms/src/Interpreters/PredicateExpressionsOptimizer.h +++ b/dbms/src/Interpreters/PredicateExpressionsOptimizer.h @@ -37,7 +37,7 @@ using SubQueriesProjectionColumns = std::map; class PredicateExpressionsOptimizer { public: - PredicateExpressionsOptimizer(ASTSelectQuery * ast_select_, const Settings & settings_, const Context & context_); + PredicateExpressionsOptimizer(ASTSelectQuery * ast_select_, const Settings & settings_); bool optimize();