From 5f00c1e6146d5571aa8c87b0f61c502c2adaf76d Mon Sep 17 00:00:00 2001 From: Robert Schulze Date: Fri, 13 Dec 2024 10:58:00 +0000 Subject: [PATCH] Fix clang-tidy build --- src/Databases/Iceberg/RestCatalog.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Databases/Iceberg/RestCatalog.cpp b/src/Databases/Iceberg/RestCatalog.cpp index ab51bb8a495..078d9960ce4 100644 --- a/src/Databases/Iceberg/RestCatalog.cpp +++ b/src/Databases/Iceberg/RestCatalog.cpp @@ -53,7 +53,8 @@ std::pair parseCatalogCredential(const std::string & c /// Parse a string of format ":" /// 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()) { 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 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)) access_key_id = config_object->get(access_key_id_str).extract(); if (config_object->has(secret_access_key_str))