From a2fd3a4de817412f1f0d98c72ab6e35297aa5ca3 Mon Sep 17 00:00:00 2001 From: zhanglistar Date: Mon, 4 Sep 2023 17:52:43 +0800 Subject: [PATCH] remove unnecessary check for HDFS load config --- src/Storages/HDFS/HDFSCommon.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Storages/HDFS/HDFSCommon.cpp b/src/Storages/HDFS/HDFSCommon.cpp index 7b149518c0a..6695a5baa09 100644 --- a/src/Storages/HDFS/HDFSCommon.cpp +++ b/src/Storages/HDFS/HDFSCommon.cpp @@ -145,10 +145,7 @@ HDFSBuilderWrapper createHDFSBuilder(const String & uri_str, const Poco::Util::A hdfsBuilderSetNameNodePort(builder.get(), port); } - if (config.has(std::string(CONFIG_PREFIX))) - { - builder.loadFromConfig(config, std::string(CONFIG_PREFIX)); - } + builder.loadFromConfig(config, std::string(CONFIG_PREFIX)); if (!user.empty()) {