Fix style check

This commit is contained in:
kssenii 2024-11-06 20:57:43 +01:00
parent fb28c16453
commit 1c3fcfa355
2 changed files with 7 additions and 1 deletions

View File

@ -31,13 +31,18 @@ namespace DatabaseIcebergSetting
extern const DatabaseIcebergSettingsDatabaseIcebergCatalogType catalog_type;
}
namespace ErrorCodes
{
extern const int BAD_ARGUMENTS;
}
namespace
{
std::pair<std::string, std::string> parseTableName(const std::string & name)
{
auto pos = name.rfind('.');
if (pos == std::string::npos)
throw DB::Exception(DB::ErrorCodes::BAD_ARGUMENTS, "Table cannot have empty namespace: {}", name);
throw DB::Exception(ErrorCodes::BAD_ARGUMENTS, "Table cannot have empty namespace: {}", name);
auto table_name = name.substr(pos + 1);
auto namespace_name = name.substr(0, name.size() - table_name.size() - 1);

View File

@ -1,3 +1,4 @@
#pragma once
#include <Databases/Iceberg/ICatalog.h>
#include <Poco/Net/HTTPBasicCredentials.h>
#include <IO/ReadWriteBufferFromHTTP.h>