From e2632293cf1ccbb78deef8df914d417e57726351 Mon Sep 17 00:00:00 2001 From: Hongze Zhang Date: Fri, 28 Jun 2024 19:25:37 +0800 Subject: [PATCH] fixup --- cpp/velox/tests/RuntimeTest.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/cpp/velox/tests/RuntimeTest.cc b/cpp/velox/tests/RuntimeTest.cc index f9ea6604b7534..563539d7d63e8 100644 --- a/cpp/velox/tests/RuntimeTest.cc +++ b/cpp/velox/tests/RuntimeTest.cc @@ -22,10 +22,26 @@ namespace gluten { +class DummyMemoryManager final : public MemoryManager { + public: + arrow::MemoryPool* getArrowMemoryPool() override { + throw GlutenException("Not yet implemented"); + } + const MemoryUsageStats collectMemoryUsageStats() const override { + throw GlutenException("Not yet implemented"); + } + const int64_t shrink(int64_t size) override { + throw GlutenException("Not yet implemented"); + } + void hold() override { + throw GlutenException("Not yet implemented"); + } +}; + class DummyRuntime final : public Runtime { public: DummyRuntime(std::unique_ptr listener, const std::unordered_map& conf) - : Runtime(conf) {} + : Runtime(std::make_shared(), conf) {} void parsePlan(const uint8_t* data, int32_t size, std::optional dumpFile) override {}