mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Miscellaneous [#METR-2944].
This commit is contained in:
parent
a4d9d766b6
commit
9acd77d985
@ -6,11 +6,6 @@
|
||||
namespace DB
|
||||
{
|
||||
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int UNEXPECTED_AST_STRUCTURE;
|
||||
}
|
||||
|
||||
/** ALTER запрос
|
||||
* ALTER TABLE [db.]name_type
|
||||
* ADD COLUMN col_name type [AFTER col_after],
|
||||
|
@ -135,7 +135,7 @@ struct ASTTablesInSelectQueryElement : public IAST
|
||||
* For former elements, either table_join and table_expression are both non-nullptr, or array_join is non-nullptr.
|
||||
*/
|
||||
ASTPtr table_join; /// How to JOIN a table, if table_expression is non-nullptr.
|
||||
ASTPtr table_expression; /// Table, first in list or JOINed.
|
||||
ASTPtr table_expression; /// Table.
|
||||
ASTPtr array_join; /// Arrays to JOIN.
|
||||
|
||||
using IAST::IAST;
|
||||
|
@ -44,7 +44,8 @@ static NamesAndTypesList chooseColumns(const String & source_database, const Str
|
||||
}
|
||||
|
||||
if (!any_table)
|
||||
throw Exception("Error while executing table function merge. In database " + source_database + " no one matches regular expression: " + table_name_regexp_, ErrorCodes::UNKNOWN_TABLE);
|
||||
throw Exception("Error while executing table function merge. In database " + source_database + " no one matches regular expression: "
|
||||
+ table_name_regexp_, ErrorCodes::UNKNOWN_TABLE);
|
||||
|
||||
return any_table->getColumnsList();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user