1
0
Fork 0

don't pull filters beyond modification nodes

This commit is contained in:
jsteemann 2016-04-15 18:10:16 +02:00
parent 18f54c2dde
commit bbac0b673f
1 changed files with 5 additions and 0 deletions

View File

@ -1268,6 +1268,11 @@ void arangodb::aql::moveFiltersUpRule(Optimizer* opt, ExecutionPlan* plan,
// must not move a filter beyond a node that can throw
break;
}
if (current->isModificationNode()) {
// must not move a filter beyond a modification node
break;
}
if (current->getType() == EN::CALCULATION) {
// must not move a filter beyond a node with a non-deterministic result