Miscellaneous [#METR-2944].

This commit is contained in:
Alexey Milovidov 2017-01-04 12:04:01 +03:00
parent a4d9d766b6
commit 9acd77d985
3 changed files with 3 additions and 7 deletions

View File

@ -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],

View File

@ -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;

View File

@ -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();
}