```
milovidov-desktop :) SELECT -1::INT

Syntax error: failed at position 10 ('::')
```
bool has_distinct = false;
    ASTPtr identifier;
    ASTPtr query;
    ASTPtr expr_list_args;
    ASTPtr expr_list_params;
    if (is_table_function)
    {
        if (ParserTableFunctionView().parse(pos, node, expected))
            return true;
    }
    if (!id_parser.parse(pos, identifier, expected))
        return false;
    if (pos->type != TokenType::OpeningRoundBracket)
        return false;
    ++pos;
    auto pos_after_bracket = pos;
    auto old_expected = expected;
    if (all.ignore(pos, expected))
        has_all = true;
    if (distinct.ignore(pos, expected))
        has_distinct = true;
    if (!has_all && all.ignore(pos, expected))
        has_all = true;
    if (has_all && has_distinct)
        return false;
    if (has_all || has_distinct)
    {
        
        if (pos->type == TokenType::Comma || pos->type == TokenType::ClosingRoundBracket)
        {