mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
fix bug
This commit is contained in:
parent
2cd469f113
commit
382417d893
@ -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
|
||||
{
|
||||
|
@ -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";
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user