mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-18 12:22:12 +00:00
Fix clang-tidy build
This commit is contained in:
parent
7b75a4c237
commit
5f00c1e614
@ -53,7 +53,8 @@ std::pair<std::string, std::string> parseCatalogCredential(const std::string & c
|
|||||||
/// Parse a string of format "<client_id>:<client_secret>"
|
/// Parse a string of format "<client_id>:<client_secret>"
|
||||||
/// into separare strings client_id and client_secret.
|
/// into separare strings client_id and client_secret.
|
||||||
|
|
||||||
std::string client_id, client_secret;
|
std::string client_id;
|
||||||
|
std::string client_secret;
|
||||||
if (!catalog_credential.empty())
|
if (!catalog_credential.empty())
|
||||||
{
|
{
|
||||||
auto pos = catalog_credential.find(':');
|
auto pos = catalog_credential.find(':');
|
||||||
@ -623,7 +624,9 @@ bool RestCatalog::getTableMetadataImpl(
|
|||||||
static constexpr auto secret_access_key_str = "s3.secret-access-key";
|
static constexpr auto secret_access_key_str = "s3.secret-access-key";
|
||||||
static constexpr auto session_token_str = "s3.session-token";
|
static constexpr auto session_token_str = "s3.session-token";
|
||||||
|
|
||||||
std::string access_key_id, secret_access_key, session_token;
|
std::string access_key_id;
|
||||||
|
std::string secret_access_key;
|
||||||
|
std::string session_token;
|
||||||
if (config_object->has(access_key_id_str))
|
if (config_object->has(access_key_id_str))
|
||||||
access_key_id = config_object->get(access_key_id_str).extract<String>();
|
access_key_id = config_object->get(access_key_id_str).extract<String>();
|
||||||
if (config_object->has(secret_access_key_str))
|
if (config_object->has(secret_access_key_str))
|
||||||
|
Loading…
Reference in New Issue
Block a user