From a7c4aa2497ecb8fa0e94665d0519cece8d0c925d Mon Sep 17 00:00:00 2001 From: Peng Jian Date: Sat, 10 Jul 2021 19:22:40 +0800 Subject: [PATCH] fix build error --- src/Interpreters/InterpreterExplainQuery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/InterpreterExplainQuery.cpp b/src/Interpreters/InterpreterExplainQuery.cpp index 137a95097a5..a74199d3f58 100644 --- a/src/Interpreters/InterpreterExplainQuery.cpp +++ b/src/Interpreters/InterpreterExplainQuery.cpp @@ -342,7 +342,7 @@ BlockInputStreamPtr InterpreterExplainQuery::executeImpl() QueryPlan plan; // It should output the result even the format is Null, for example EXPLAIN ESTIMATES select * from x format Null; - if (ast.format && ast.foramt->getColumnName() == "Null") + if (ast.format && ast.format->getColumnName() == "Null") { ast.format = nullptr; }