1
0
Fork 0

add dump of ExectionPlan.

Index Node seems to be created!
This commit is contained in:
Jan Christoph Uhde 2016-12-14 12:21:21 +01:00
parent 0f8b496c57
commit 2a404cfabe
1 changed files with 11 additions and 0 deletions

View File

@ -51,6 +51,8 @@
#include <tuple>
#include <iostream>
#include <velocypack/Builder.h>
using namespace arangodb;
using namespace arangodb::aql;
using EN = arangodb::aql::ExecutionNode;
@ -4384,9 +4386,18 @@ bool applyGeoOptimization(bool near, ExecutionPlan* plan, GeoIndexInfo& first, G
plan->registerNode(inode);
condition.release();
arangodb::velocypack::Builder builder;
bool withFigures = false;
plan->root()->toVelocyPack(builder, withFigures);
std::cout << builder.toString();
builder.clear();
LOG_TOPIC(DEBUG, Logger::DEVEL) << "replacing node, type: " << first.collectionNode->getType()
<< " with type: " << inode->getType();
plan->replaceNode(first.collectionNode,inode);
plan->root()->toVelocyPack(builder, withFigures);
std::cout << builder.toString();
replaceGeoCondition(plan, first);
replaceGeoCondition(plan, second);