Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Jun 28, 2024
1 parent c0c2049 commit e263229
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion cpp/velox/tests/RuntimeTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<AllocationListener> listener, const std::unordered_map<std::string, std::string>& conf)
: Runtime(conf) {}
: Runtime(std::make_shared<DummyMemoryManager>(), conf) {}

void parsePlan(const uint8_t* data, int32_t size, std::optional<std::string> dumpFile) override {}

Expand Down

0 comments on commit e263229

Please sign in to comment.