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(Once &) override { return true; }
|
||||||
|
|
||||||
bool Visit(CreateIndex &) override {
|
bool Visit(CreateIndex &) override { return true; }
|
||||||
throw utils::NotYetImplemented("distributed planning");
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO: Write operators, accumulate and unwind
|
// TODO: Write operators, accumulate and unwind
|
||||||
|
|
||||||
|
@ -1446,6 +1446,9 @@ TYPED_TEST(TestPlanner, CreateIndex) {
|
|||||||
AstTreeStorage storage;
|
AstTreeStorage storage;
|
||||||
QUERY(SINGLE_QUERY(CREATE_INDEX_ON(label, property)));
|
QUERY(SINGLE_QUERY(CREATE_INDEX_ON(label, property)));
|
||||||
CheckPlan<TypeParam>(storage, ExpectCreateIndex(label, property));
|
CheckPlan<TypeParam>(storage, ExpectCreateIndex(label, property));
|
||||||
|
ExpectedDistributedPlan expected{
|
||||||
|
MakeCheckers(ExpectCreateIndex(label, property)), {}};
|
||||||
|
CheckDistributedPlan<TypeParam>(storage, expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
TYPED_TEST(TestPlanner, AtomIndexedLabelProperty) {
|
TYPED_TEST(TestPlanner, AtomIndexedLabelProperty) {
|
||||||
|
Loading…
Reference in New Issue
Block a user