diff --git a/presto-native-execution/presto_cpp/main/PrestoServer.cpp b/presto-native-execution/presto_cpp/main/PrestoServer.cpp index f3f2d3d59dbb6..54179bda783e8 100644 --- a/presto-native-execution/presto_cpp/main/PrestoServer.cpp +++ b/presto-native-execution/presto_cpp/main/PrestoServer.cpp @@ -143,7 +143,7 @@ void PrestoServer::run() { } registerPrestoCppCounters(); - velox::filesystems::registerLocalFileSystem(); + registerFileSystems(); registerOptionalHiveStorageAdapters(); protocol::registerHiveConnectors(); protocol::registerTpchConnector(); @@ -465,6 +465,10 @@ std::vector PrestoServer::registerConnectors( return catalogNames; } +void PrestoServer::registerFileSystems() { + velox::filesystems::registerLocalFileSystem(); +} + std::shared_ptr PrestoServer::connectorWithCache( const std::string& connectorName, const std::string& catalogName, diff --git a/presto-native-execution/presto_cpp/main/PrestoServer.h b/presto-native-execution/presto_cpp/main/PrestoServer.h index 536ee435881f1..dfefdddf1f1e2 100644 --- a/presto-native-execution/presto_cpp/main/PrestoServer.h +++ b/presto-native-execution/presto_cpp/main/PrestoServer.h @@ -82,11 +82,13 @@ class PrestoServer { virtual std::shared_ptr getExprSetListener(); - void initializeAsyncCache(); - virtual std::vector registerConnectors( const fs::path& configDirectoryPath); + virtual void registerFileSystems(); + + void initializeAsyncCache(); + protected: virtual std::shared_ptr connectorWithCache( const std::string& connectorName,