Refactor some code.

This commit is contained in:
Nikolai Kochetov 2020-06-27 17:18:23 +03:00
parent 5b1596cdb2
commit ff47f83034

View File

@ -225,7 +225,7 @@ BlockInputStreamPtr InterpreterExplainQuery::executeImpl()
if (ast.getSettings())
throw Exception("Settings are not supported for EXPLAIN AST query.", ErrorCodes::UNKNOWN_SETTING);
dumpAST(ast, ss);
dumpAST(*ast.getExplainedQuery(), ss);
}
else if (ast.getKind() == ASTExplainQuery::AnalyzedSyntax)
{