Skip to content

Commit

Permalink
fix TPCH benchmark reader crash
Browse files Browse the repository at this point in the history
parquet and dwrf reader are registered in TPCH benchmark initialize
  • Loading branch information
karthikeyann committed Dec 11, 2024
1 parent b44ffc9 commit 19d33e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions velox/benchmarks/QueryBenchmarkBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ void QueryBenchmarkBase::initialize() {
connector::hive::HiveConnectorFactory::kHiveConnectorName)
->newConnector(kHiveConnectorId, properties, ioExecutor_.get());
connector::registerConnector(hiveConnector);
parquet::registerParquetReaderFactory();
dwrf::registerDwrfReaderFactory();
}

std::vector<std::shared_ptr<connector::ConnectorSplit>>
Expand Down
2 changes: 2 additions & 0 deletions velox/benchmarks/QueryBenchmarkBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include "velox/connectors/hive/HiveConfig.h"
#include "velox/connectors/hive/HiveConnector.h"
#include "velox/dwio/common/Options.h"
#include "velox/dwio/dwrf/RegisterDwrfReader.h"
#include "velox/dwio/parquet/RegisterParquetReader.h"
#include "velox/exec/PlanNodeStats.h"
#include "velox/exec/Split.h"
#include "velox/exec/tests/utils/HiveConnectorTestBase.h"
Expand Down

0 comments on commit 19d33e6

Please sign in to comment.