Skip to content

Commit

Permalink
fix a style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
larryluogit committed Jan 17, 2023
1 parent 625db34 commit 2ea4e7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Parsers/ExpressionElementParsers.cpp
Expand Up @@ -125,10 +125,10 @@ bool ParserSubquery::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
}
else if (ASTPtr explain_node; explain.parse(pos, explain_node, expected))
{
const auto & explain_query = explain_node->as<const ASTExplainQuery &>();
const auto & explain_query = explain_node->as<const ASTExplainQuery &>();

if (explain_query.getTableFunction() || explain_query.getTableOverride())
throw Exception("EXPLAIN in a subquery cannot have a table function or table override", ErrorCodes::BAD_ARGUMENTS);
if (explain_query.getTableFunction() || explain_query.getTableOverride())
throw Exception("EXPLAIN in a subquery cannot have a table function or table override", ErrorCodes::BAD_ARGUMENTS);

/// Replace subquery `(EXPLAIN <kind> <explain_settings> SELECT ...)`
/// with `(SELECT * FROM viewExplain("<kind>", "<explain_settings>", SELECT ...))`
Expand Down

0 comments on commit 2ea4e7c

Please sign in to comment.