mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
issue-7224 Codestyle changes
This commit is contained in:
parent
2545efcf2e
commit
09255b7c46
@ -564,11 +564,14 @@ static std::tuple<ASTPtr, BlockIO> executeQueryImpl(
|
|||||||
}
|
}
|
||||||
|
|
||||||
ProfileEvents::increment(ProfileEvents::FailedQuery);
|
ProfileEvents::increment(ProfileEvents::FailedQuery);
|
||||||
if (ast->as<ASTInsertQuery>()) {
|
if (ast->as<ASTSelectQuery>() || ast->as<ASTSelectWithUnionQuery>())
|
||||||
ProfileEvents::increment(ProfileEvents::FailedInsertQuery);
|
{
|
||||||
} else if (ast->as<ASTSelectQuery>() || ast->as<ASTSelectWithUnionQuery>()) {
|
|
||||||
ProfileEvents::increment(ProfileEvents::FailedSelectQuery);
|
ProfileEvents::increment(ProfileEvents::FailedSelectQuery);
|
||||||
}
|
}
|
||||||
|
else if (ast->as<ASTInsertQuery>())
|
||||||
|
{
|
||||||
|
ProfileEvents::increment(ProfileEvents::FailedInsertQuery);
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user