mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Revert "dbms: fix column names asynchrony in SELECT from StorageDistributed. [#METR-13399]"
This reverts commit f68d3226e0e55179b4cd734477f0aa45b669d6fa.
This commit is contained in:
parent
e310a3021b
commit
071e31a7fa
@ -21,9 +21,9 @@ namespace
|
||||
{
|
||||
/// select query has database and table names as AST pointers
|
||||
/// Создает копию запроса, меняет имена базы данных и таблицы.
|
||||
inline ASTPtr rewriteSelectQuery(ASTPtr & query, const std::string & database, const std::string & table)
|
||||
inline ASTPtr rewriteSelectQuery(const ASTPtr & query, const std::string & database, const std::string & table)
|
||||
{
|
||||
auto & modified_query_ast = query;
|
||||
auto modified_query_ast = query->clone();
|
||||
|
||||
auto & actual_query = typeid_cast<ASTSelectQuery &>(*modified_query_ast);
|
||||
actual_query.database = new ASTIdentifier{{}, database, ASTIdentifier::Database};
|
||||
|
Loading…
Reference in New Issue
Block a user