Support distributed CreateIndex plan

Reviewers: florijan, msantl

Reviewed By: msantl

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1162
This commit is contained in:
Teon Banek 2018-02-01 11:00:06 +01:00
parent b97b48b365
commit 27a90a5c25
2 changed files with 4 additions and 3 deletions

View File

@ -325,9 +325,7 @@ class DistributedPlanner : public HierarchicalLogicalOperatorVisitor {
bool Visit(Once &) override { return true; }
bool Visit(CreateIndex &) override {
throw utils::NotYetImplemented("distributed planning");
}
bool Visit(CreateIndex &) override { return true; }
// TODO: Write operators, accumulate and unwind

View File

@ -1446,6 +1446,9 @@ TYPED_TEST(TestPlanner, CreateIndex) {
AstTreeStorage storage;
QUERY(SINGLE_QUERY(CREATE_INDEX_ON(label, property)));
CheckPlan<TypeParam>(storage, ExpectCreateIndex(label, property));
ExpectedDistributedPlan expected{
MakeCheckers(ExpectCreateIndex(label, property)), {}};
CheckDistributedPlan<TypeParam>(storage, expected);
}
TYPED_TEST(TestPlanner, AtomIndexedLabelProperty) {