Use utils::MonotonicBufferResource in query execution

Reviewers: mferencevic, mtomic, msantl

Reviewed By: mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2016
This commit is contained in:
Teon Banek
2019-05-07 14:03:58 +02:00
parent c4725bcf99
commit 2909ef63d2
12 changed files with 30 additions and 17 deletions

View File

@@ -280,8 +280,8 @@ TEST(QueryPlan, Delete) {
n.op_, std::vector<Expression *>{n_get}, true);
Frame frame(symbol_table.max_position());
auto context = MakeContext(storage, symbol_table, &dba);
delete_op->query::plan::LogicalOperator::MakeCursor(dba)->Pull(frame,
context);
delete_op->MakeCursor(&dba, utils::NewDeleteResource())
->Pull(frame, context);
dba.AdvanceCommand();
EXPECT_EQ(3, CountIterable(dba.Vertices(false)));
EXPECT_EQ(3, CountIterable(dba.Edges(false)));