Skip to content

Commit

Permalink
Update ConfigExtractor.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh authored Aug 16, 2024
1 parent 91f8f76 commit f4661c3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cpp/velox/utils/ConfigExtractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,6 @@ std::shared_ptr<facebook::velox::config::ConfigBase> getHiveConfig(
}
#endif

#ifdef ENABLE_ABFS
const auto& confValue = conf->rawConfigsCopy();
for (auto& [k, v] : confValue) {
if (k.find("fs.azure.account.key") == 0) {
connectorConfMap[k] = v;
} else if (k.find("spark.hadoop.fs.azure.account.key") == 0) {
constexpr int32_t accountKeyPrefixLength = 13;
connectorConfMap[k.substr(accountKeyPrefixLength)] = std::string(v);
}
}
#endif

hiveConfMap[facebook::velox::connector::hive::HiveConfig::kEnableFileHandleCache] =
conf->get<bool>(kVeloxFileHandleCacheEnabled, kVeloxFileHandleCacheEnabledDefault) ? "true" : "false";

Expand Down

0 comments on commit f4661c3

Please sign in to comment.