未验证 提交 4ec787ce 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #12147 from ClickHouse/fix-logical-error-table-function-remote

Change exception code from LOGICAL_ERROR to BAD_ARGUMENTS when the name of remote table is empty.
......@@ -186,6 +186,9 @@ StoragePtr TableFunctionRemote::executeImpl(const ASTPtr & ast_function, const C
secure);
}
if (!remote_table_function_ptr && remote_table.empty())
throw Exception("The name of remote table cannot be empty", ErrorCodes::BAD_ARGUMENTS);
auto remote_table_id = StorageID::createEmpty();
remote_table_id.database_name = remote_database;
remote_table_id.table_name = remote_table;
......
SELECT * FROM remote('127..2', 'a.'); -- { serverError 36 }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册