This commit is contained in:
taiyang-li 2022-03-10 18:29:00 +08:00
parent 2cd469f113
commit 382417d893
2 changed files with 5 additions and 3 deletions

View File

@ -277,6 +277,7 @@ QueryPipeline InterpreterExplainQuery::executeImpl()
dumpASTInDotFormat(*ast.getExplainedQuery(), buf);
else
dumpAST(*ast.getExplainedQuery(), buf);
std::cout << "buf:" << buf.str() << std::endl;
break;
}
case ASTExplainQuery::AnalyzedSyntax:
@ -349,6 +350,7 @@ QueryPipeline InterpreterExplainQuery::executeImpl()
printPipelineCompact(processors, buf, settings.query_pipeline_options.header);
else
printPipeline(processors, buf);
std::cout << "buf:" << buf.str() << std::endl;
}
else
{

View File

@ -96,7 +96,7 @@ public:
return;
if (root)
(*ostr) << "digraph " << (label ? String(label) : "") << "{\n\trankdir=\"UD\";\n";
(*ostr) << "digraph " << (label ? String(label) : "") << "{\n rankdir=\"UD\";\n";
printNode();
}
@ -124,7 +124,7 @@ private:
void printNode() const
{
(*ostr) << "\t" << getNodeId(ast) << "[label=\"";
(*ostr) << " " << getNodeId(ast) << "[label=\"";
(*ostr) << getASTId();
String alias = ast.tryGetAlias();
@ -141,7 +141,7 @@ private:
void printEdge(const IAST & parent, const IAST & child) const
{
(*ostr) << "\t" << getNodeId(parent) << " -> " << getNodeId(child) << ";\n";
(*ostr) << " " << getNodeId(parent) << " -> " << getNodeId(child) << ";\n";
}
};