mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-20 05:05:38 +00:00
fix typo
This commit is contained in:
parent
1554dd8c12
commit
765e83db64
@ -338,7 +338,7 @@ void ASTFunction::formatImplWithoutAlias(const FormatSettings & settings, Format
|
||||
bool literal_need_parens = literal && !is_tuple && !is_array;
|
||||
|
||||
/// Negate always requires parentheses, otherwise -(-1) will be printed as --1
|
||||
/// Also extra parentheses are needed for subqueries ans tuple, because NOT can be parsed as a function:
|
||||
/// Also extra parentheses are needed for subqueries and tuple, because NOT can be parsed as a function:
|
||||
/// not(SELECT 1) cannot be parsed, while not((SELECT 1)) can.
|
||||
/// not((1, 2, 3)) is a function of one argument, while not(1, 2, 3) is a function of three arguments.
|
||||
bool inside_parens = (name == "negate" && (literal_need_parens || (function && function->name == "negate")))
|
||||
|
Loading…
Reference in New Issue
Block a user