mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge remote-tracking branch 'origin/master' into CLICKHOUSE-2910
This commit is contained in:
commit
dfd9be86d8
@ -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();
|
||||
|
@ -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_)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ using SubQueriesProjectionColumns = std::map<IAST *, ProjectionsWithAliases>;
|
||||
class PredicateExpressionsOptimizer
|
||||
{
|
||||
public:
|
||||
PredicateExpressionsOptimizer(ASTSelectQuery * ast_select_, const Settings & settings_, const Context & context_);
|
||||
PredicateExpressionsOptimizer(ASTSelectQuery * ast_select_, const Settings & settings_);
|
||||
|
||||
bool optimize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user