Skip to content

Commit bd3ff3b

Browse files
majetideepakaditi-pandit
authored andcommitted
[native] Register Velox hive connector factory for iceberg
The current iceberg catalog uses "hive" for the connector.name. Register a Velox hive connector factory for iceberg with name `iceberg`. "connector.name=iceberg" is now supported.
1 parent 34ea555 commit bd3ff3b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# The Presto "iceberg" catalog is handled by the hive connector in Presto native execution.
2-
connector.name=hive
1+
connector.name=iceberg

presto-native-execution/presto_cpp/main/PrestoServer.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#include "velox/common/memory/MmapAllocator.h"
4747
#include "velox/common/memory/SharedArbitrator.h"
4848
#include "velox/connectors/Connector.h"
49+
#include "velox/connectors/hive/HiveConnector.h"
4950
#include "velox/core/Config.h"
5051
#include "velox/exec/OutputBufferManager.h"
5152
#include "velox/functions/prestosql/aggregates/RegisterAggregateFunctions.h"
@@ -224,6 +225,11 @@ void PrestoServer::run() {
224225
registerShuffleInterfaceFactories();
225226
registerCustomOperators();
226227

228+
// Register Velox connector factory for iceberg.
229+
// The iceberg catalog is handled by the hive connector factory.
230+
connector::registerConnectorFactory(
231+
std::make_shared<connector::hive::HiveConnectorFactory>("iceberg"));
232+
227233
registerPrestoToVeloxConnector(
228234
std::make_unique<HivePrestoToVeloxConnector>("hive"));
229235
registerPrestoToVeloxConnector(

0 commit comments

Comments
 (0)