Support distributed CreateIndex plan
Reviewers: florijan, msantl Reviewed By: msantl Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D1162
This commit is contained in:
parent
b97b48b365
commit
27a90a5c25
@ -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
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user