Skip to content

Commit

Permalink
fix ABFS API change
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Nov 19, 2024
1 parent a5ce606 commit 2987c5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/velox/compute/VeloxBackend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ void VeloxBackend::init(const std::unordered_map<std::string, std::string>& conf
velox::filesystems::registerGcsFileSystem();
#endif
#ifdef ENABLE_ABFS
velox::filesystems::abfs::registerAbfsFileSystem();
velox::filesystems::registerAbfsFileSystem();
#endif

initJolFilesystem();
Expand Down
2 changes: 1 addition & 1 deletion cpp/velox/operators/writer/VeloxParquetDataSourceABFS.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class VeloxParquetDataSourceABFS final : public VeloxParquetDataSource {
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());
auto* abfsFileSystem = dynamic_cast<filesystems::AbfsFileSystem*>(fileSystem.get());
sink_ = std::make_unique<dwio::common::WriteFileSink>(
abfsFileSystem->openFileForWrite(filePath_, {{}, sinkPool_.get()}), filePath_);
}
Expand Down

0 comments on commit 2987c5c

Please sign in to comment.