Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchengchenghh committed Aug 15, 2024
1 parent 0729874 commit ba31545
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cpp/velox/operators/writer/VeloxParquetDatasourceABFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class VeloxParquetDatasourceABFS final : public VeloxParquetDatasource {
: VeloxParquetDatasource(filePath, veloxPool, sinkPool, schema) {}

void initSink(const std::unordered_map<std::string, std::string>& sparkConfs) override {
auto hiveConf = getHiveConfig(
std::make_shared<facebook::velox::config::ConfigBase>(std::unordered_map<std::string, std::string>(confMap_)));
auto hiveConf = getHiveConfig(std::make_shared<facebook::velox::config::ConfigBase>(
std::unordered_map<std::string, std::string>(sparkConfs)));
auto fileSystem = filesystems::getFileSystem(filePath_, hiveConf);
auto* abfsFileSystem = dynamic_cast<filesystems::abfs::AbfsFileSystem*>(fileSystem.get());
sink_ = std::make_unique<dwio::common::WriteFileSink>(
Expand Down
4 changes: 2 additions & 2 deletions cpp/velox/operators/writer/VeloxParquetDatasourceHDFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class VeloxParquetDatasourceHDFS final : public VeloxParquetDatasource {
: VeloxParquetDatasource(filePath, veloxPool, sinkPool, schema) {}

void initSink(const std::unordered_map<std::string, std::string>& sparkConfs) override {
auto hiveConf = getHiveConfig(
std::make_shared<facebook::velox::config::ConfigBase>(std::unordered_map<std::string, std::string>(confMap_)));
auto hiveConf = getHiveConfig(std::make_shared<facebook::velox::config::ConfigBase>(
std::unordered_map<std::string, std::string>(sparkConfs)));
sink_ = dwio::common::FileSink::create(filePath_, {.connectorProperties = hiveConf, .pool = sinkPool_.get()});
}
};
Expand Down
4 changes: 2 additions & 2 deletions cpp/velox/operators/writer/VeloxParquetDatasourceS3.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class VeloxParquetDatasourceS3 final : public VeloxParquetDatasource {
: VeloxParquetDatasource(filePath, veloxPool, sinkPool, schema) {}

void initSink(const std::unordered_map<std::string, std::string>& sparkConfs) override {
auto hiveConf = getHiveConfig(
std::make_shared<facebook::velox::config::ConfigBase>(std::unordered_map<std::string, std::string>(confMap_)));
auto hiveConf = getHiveConfig(std::make_shared<facebook::velox::config::ConfigBase>(
std::unordered_map<std::string, std::string>(sparkConfs)));
sink_ = dwio::common::FileSink::create(filePath_, {.connectorProperties = hiveConf, .pool = sinkPool_.get()});
}
};
Expand Down

0 comments on commit ba31545

Please sign in to comment.