mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #14876 from amosbird/ns
Get rid of query settings after initialization.
This commit is contained in:
commit
84eece69ba
@ -99,6 +99,12 @@ ASTPtr rewriteSelectQuery(const ASTPtr & query, const std::string & database, co
|
||||
auto modified_query_ast = query->clone();
|
||||
|
||||
ASTSelectQuery & select_query = modified_query_ast->as<ASTSelectQuery &>();
|
||||
|
||||
// Get rid of the settings clause so we don't send them to remote. Thus newly non-important
|
||||
// settings won't break any remote parser. It's also more reasonable since the query settings
|
||||
// are written into the query context and will be sent by the query pipeline.
|
||||
select_query.setExpression(ASTSelectQuery::Expression::SETTINGS, {});
|
||||
|
||||
if (table_function_ptr)
|
||||
select_query.addTableFunction(table_function_ptr);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user